7d86e0ffbe4295c91220ff671c3eeb2009d41408 braney Sun Feb 25 11:09:39 2024 -0800 working on quickLift UI diff --git src/hg/inc/exportedDataHubs.h src/hg/inc/exportedDataHubs.h new file mode 100644 index 0000000..95a8b41 --- /dev/null +++ src/hg/inc/exportedDataHubs.h @@ -0,0 +1,64 @@ +/* exportedDataHubs.h was originally generated by the autoSql program, which also + * generated exportedDataHubs.c and exportedDataHubs.sql. This header links the database and + * the RAM representation of objects. */ + +#ifndef EXPORTEDDATAHUBS_H +#define EXPORTEDDATAHUBS_H + +#define EXPORTEDDATAHUBS_NUM_COLS 2 + +extern char *exportedDataHubsCommaSepFieldNames; + +struct exportedDataHubs +/* registered data hubs for quickLift */ + { + struct exportedDataHubs *next; /* Next in singly linked list. */ + unsigned id; /* Auto-incrementing ID */ + char *path; /* URL to data hub */ + }; + +void exportedDataHubsStaticLoad(char **row, struct exportedDataHubs *ret); +/* Load a row from exportedDataHubs table into ret. The contents of ret will + * be replaced at the next call to this function. */ + +struct exportedDataHubs *exportedDataHubsLoad(char **row); +/* Load a exportedDataHubs from row fetched with select * from exportedDataHubs + * from database. Dispose of this with exportedDataHubsFree(). */ + +struct exportedDataHubs *exportedDataHubsLoadAll(char *fileName); +/* Load all exportedDataHubs from whitespace-separated file. + * Dispose of this with exportedDataHubsFreeList(). */ + +struct exportedDataHubs *exportedDataHubsLoadAllByChar(char *fileName, char chopper); +/* Load all exportedDataHubs from chopper separated file. + * Dispose of this with exportedDataHubsFreeList(). */ + +#define exportedDataHubsLoadAllByTab(a) exportedDataHubsLoadAllByChar(a, '\t'); +/* Load all exportedDataHubs from tab separated file. + * Dispose of this with exportedDataHubsFreeList(). */ + +struct exportedDataHubs *exportedDataHubsCommaIn(char **pS, struct exportedDataHubs *ret); +/* Create a exportedDataHubs out of a comma separated string. + * This will fill in ret if non-null, otherwise will + * return a new exportedDataHubs */ + +void exportedDataHubsFree(struct exportedDataHubs **pEl); +/* Free a single dynamically allocated exportedDataHubs such as created + * with exportedDataHubsLoad(). */ + +void exportedDataHubsFreeList(struct exportedDataHubs **pList); +/* Free a list of dynamically allocated exportedDataHubs's */ + +void exportedDataHubsOutput(struct exportedDataHubs *el, FILE *f, char sep, char lastSep); +/* Print out exportedDataHubs. Separate fields with sep. Follow last field with lastSep. */ + +#define exportedDataHubsTabOut(el,f) exportedDataHubsOutput(el,f,'\t','\n'); +/* Print out exportedDataHubs as a line in a tab-separated file. */ + +#define exportedDataHubsCommaOut(el,f) exportedDataHubsOutput(el,f,',',','); +/* Print out exportedDataHubs as a comma separated list including final comma. */ + +/* -------------------------------- End autoSql Generated Code -------------------------------- */ + +#endif /* EXPORTEDDATAHUBS_H */ +