0f349359a8bebbd67c7bd7bb732285dee71905fc
chmalee
  Tue May 7 08:43:51 2024 -0700
Start of requiring hub,genome,and file type with each file submission

diff --git src/hg/hgHubConnect/hooks/hooklib.h src/hg/hgHubConnect/hooks/hooklib.h
index 2922cfa..9fa9d26 100644
--- src/hg/hgHubConnect/hooks/hooklib.h
+++ src/hg/hgHubConnect/hooks/hooklib.h
@@ -3,29 +3,39 @@
 /* Copyright (C) 2008 The Regents of the University of California 
  * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
 
 #ifndef HOOKLIB_H
 #define HOOKLIB_H
 #define ERR_MSG "errorMessage"
 #define REJECT_SETTING "RejectUpload"
 #define STOP_SETTING "StopUpload"
 #define HTTP_NAME "HTTPResponse"
 #define HTTP_STATUS "StatusCode"
 #define HTTP_BODY "Body"
 #define HTTP_HEADER "Header"
 #define HTTP_CONTENT_TYPE "Content-Type"
 #define HTTP_CONTENT_TYPE_STR "application/json"
 
+
 char *prettyFileSize(long size);
 /* Return a string representing the size of a file */
 
 void fillOutHttpResponseError();
 
 void fillOutHttpResponseSuccess();
 
 struct jsonElement *makeDefaultResponse();
 /* Create the default response json with some fields pre-filled */
 
 void rejectUpload(struct jsonElement *response, char *msg, ...);
 /* Set the keys for stopping an upload */
 
+boolean isFileTypeRecognized(char *fileName);
+/* Return true if this file one of our recognized types */
+
+boolean isExistingHubForUser(char *userName, char *reqHubName);
+/* Return true if hubName is an existing hub for this user */
+
+char *genomeForHub(char *userName, char *reqHubName);
+/* Return the genome associated with reqHubName for user */
+
 #endif /* HOOKLIB_H */