3e420ec829635a0f80f3790b312ab555d3ff2240 hiram Tue Aug 13 18:03:07 2024 -0700 helper function assemblyListTableName() refs #32897 diff --git src/hg/inc/assemblyList.h src/hg/inc/assemblyList.h index db0ee5f..ffa81b9 100644 --- src/hg/inc/assemblyList.h +++ src/hg/inc/assemblyList.h @@ -73,17 +73,29 @@ void assemblyListOutput(struct assemblyList *el, FILE *f, char sep, char lastSep); /* Print out assemblyList. Separate fields with sep. Follow last field with lastSep. */ #define assemblyListTabOut(el,f) assemblyListOutput(el,f,'\t','\n'); /* Print out assemblyList as a line in a tab-separated file. */ #define assemblyListCommaOut(el,f) assemblyListOutput(el,f,',',','); /* Print out assemblyList as a comma separated list including final comma. */ void assemblyListJsonOutput(struct assemblyList *el, FILE *f); /* Print out assemblyList in JSON format. */ /* -------------------------------- End autoSql Generated Code -------------------------------- */ + +#define defaultAssemblyListTableName "assemblyList" +/* Name of table that maintains the list of all assemblies, whether + * available here or could be built */ + +#define assemblyListTableConfVariable "hub.assemblyListTableName" +/* the name of the hg.conf variable to use something other than the default */ + +char *assemblyListTableName(); +/* return the assemblyList table name from the environment, + * or hg.conf, or use the default. Cache the result */ + #endif /* ASSEMBLYLIST_H */