8a4758bc9826bad352cbce19052b01f28fb7171c
hiram
  Fri Jul 5 11:25:55 2019 -0700
now allowing getData for any table in the database refs #23589

diff --git src/hg/hubApi/dataApi.h src/hg/hubApi/dataApi.h
index 0ead1fc..17f0522 100644
--- src/hg/hubApi/dataApi.h
+++ src/hg/hubApi/dataApi.h
@@ -193,28 +193,36 @@
 /* is given type in the supportedTypes list ? */
 
 void wigColumnTypes(struct jsonWrite *jw);
 /* output column headers for a wiggle data output schema */
 
 void outputSchema(struct trackDb *tdb, struct jsonWrite *jw,
     char *columnNames[], char *columnTypes[], int jsonTypes[],
 	struct hTableInfo *hti, int columnCount, int asColumnCount,
 	    struct asColumn *columnEl);
 /* print out the SQL schema for this trackDb */
 
 void bigColumnTypes(struct jsonWrite *jw, struct sqlFieldType *fiList,
     struct asObject *as);
 /* show the column types from a big file autoSql definitions */
 
+boolean trackHasData(struct trackDb *tdb);
+/* check if this is actually a data track:
+ *	TRUE when has data, FALSE if has no data
+ * When NO trackDb, can't tell at this point, will check that later
+ */
+
+#define trackHasNoData(tdb) (!trackHasData(tdb))
+
 /* ######################################################################### */
 /*  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 */
 
 #endif	/*	 DATAAPH_H	*/