57ad409a6278ef6a75e2c082988ed1ee419a5f78
hiram
  Fri Apr 7 11:35:09 2023 -0700
now allowing argument format=text on list files output refs #23589

diff --git src/hg/hubApi/dataApi.h src/hg/hubApi/dataApi.h
index f187252..2a3e845 100644
--- src/hg/hubApi/dataApi.h
+++ src/hg/hubApi/dataApi.h
@@ -60,30 +60,31 @@
 #define err415Msg	"Unsupported track type"
 #define err429	429
 #define err429Msg	"Too Many Requests"
 #define err500	500
 #define err500Msg	"Internal Server Error"
 
 /* list of all potential arguments */
 #define argHubUrl	"hubUrl"
 #define argGenome	"genome"
 #define argTrackLeavesOnly	"trackLeavesOnly"
 #define argTrack	"track"
 #define argChrom	"chrom"
 #define argStart	"start"
 #define argEnd	"end"
 #define argMaxItemsOutput	"maxItemsOutput"
+#define argFormat	"format"
 #define argJsonOutputArrays	"jsonOutputArrays"
 #define argCategories "categories"
 #define argSearchTerm "search"
 
 /* valid argument listings to verify extraneous arguments
  *  initialized in hubApi.c
  */
 extern char *argListPublicHubs[];
 extern char *argListUcscGenomes[];
 extern char *argListHubGenomes[];
 extern char *argListTracks[];
 extern char *argListChromosomes[];
 extern char *argListSchema[];
 extern char *argListFiles[];
 extern char *argGetDataTrack[];
@@ -239,30 +240,36 @@
 char *chrOrAlias(char *db, char *hubUrl);
 /* get incoming chr name, may be an alias, return the native chr name */
 
 void hubAliasSetup(struct trackHubGenome *hubGenome);
 /* see if this hub has an alias file and run chromAliasSetupBb() for it */
 
 char *genArkPath(char *genome);
 /* given a GenArk hub genome name, e.g. GCA_021951015.1 return the path:
  *               GCA/021/951/015/GCA_021951015.1
  * prefix that with desired server URL: https://hgdownload.soe.ucsc.edu/hubs/
  *   if desired.  Or suffix add /hub.txt to get the hub.txt URL
  *
  *   already been proven that genome is a GCx_ name prefix before calling
  */
 
+void textLineOut(char *lineOut);
+/* accumulate text lines for output in the dyString textOutput */
+
+void textFinishOutput();
+/* all done with text output, print it all out */
+
 /* ######################################################################### */
 /*  functions in getData.c */
 
 void apiGetData(char *words[MAX_PATH_INFO]);
 /* 'getData' function, words[1] is the subCommand */
 
 /* ######################################################################### */
 /*  functions in list.c */
 
 void apiList(char *words[MAX_PATH_INFO]);
 /* 'list' function words[1] is the subCommand */
 
 /* ######################################################################### */
 /*  functions in search.c */