7545a188d43c6e1ea33f692b0d833ec96a7f76c5
chmalee
  Wed Aug 14 09:21:15 2024 -0700
refactor some methods into userdata.c for writing hub.txt files. Finish trackHubWizard.c back end for writing hub.txt and clean up the html. Start of adding a modal dialog for creating hub.txt

diff --git src/hg/inc/userdata.h src/hg/inc/userdata.h
index 879f066..8a2095a 100644
--- src/hg/inc/userdata.h
+++ src/hg/inc/userdata.h
@@ -38,30 +38,34 @@
 // path to hg.conf file that has a list of hubspace.quota.userName entries
 // for special per user quotas:
 #define HUB_SPACE_QUOTA_LIST_VAR "hubspace.quotaList"
 
 char *webDataDir(char *userName);
 /* Return a web accesible path to the userDataDir, this is different from the full path tusd uses */
 
 char *getDataDir(char *userName);
 /* Return the full path to the user specific data directory, can be configured via hg.conf
  * on hgwdev, this is /data/apache/userdata/userStore/hash/userName/
  * on the RR, this is /userdata/userStore/hash/userName/ */
 
 char *prefixUserFile(char *userName, char *fname);
 /* Allocate a new string that contains the full per-user path to fname, NULL otherwise */
 
+void addNewFileForUser(char *userName, char *fileName, long long fileSize, char *fileType,
+        time_t lastModified, char *hubName, char *db, char *location);
+/* We created a file for a user, now add an entry to the hubSpace table for it */
+
 void removeFileForUser(char *fname, char *userName);
 /* Remove a file for this user if it exists */
 
 struct userHubs *listHubsForUser(char *userName);
 /* Lists the directories for a particular user */
 
 struct userFiles *listFilesForUserHub(char *userName, char *hubName);
 /* Get all the files for a particular hub for a particular user */
 
 struct hubSpace *listFilesForUser(char *userName);
 /* Return the files the user has uploaded */
 
 long long getMaxUserQuota(char *userName);
 /* Return how much space is allocated for this user or the default */