7864ddf3a6d058dbe29f706519921cd55ccc4c67 chmalee Thu May 2 09:04:45 2024 -0700 Work in progress on building form for choosing db and hub along with files to submit diff --git src/hg/hgHubConnect/hooks/hooklib.h src/hg/hgHubConnect/hooks/hooklib.h index 0c1e5bc..2922cfa 100644 --- src/hg/hgHubConnect/hooks/hooklib.h +++ src/hg/hgHubConnect/hooks/hooklib.h @@ -2,32 +2,30 @@ /* 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" -#define MAX_QUOTA_BYTES 1000000000 -#define MAX_QUOTA MAX_QUOTA_BYTES 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 */ #endif /* HOOKLIB_H */