src/hg/lib/jksql.c 1.135
1.135 2009/09/14 20:33:13 markd
added function to get list of profile names for Fan
Index: src/hg/lib/jksql.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/jksql.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -b -B -U 4 -r1.134 -r1.135
--- src/hg/lib/jksql.c 28 Aug 2009 23:33:19 -0000 1.134
+++ src/hg/lib/jksql.c 14 Sep 2009 20:33:13 -0000 1.135
@@ -266,8 +266,21 @@
}
return sp;
}
+struct slName* sqlProfileGetNames()
+/* Get a list of all profile names. slFreeList result when done */
+{
+if (profiles == NULL)
+ sqlProfileLoad();
+struct slName *names = NULL;
+struct hashCookie cookie = hashFirst(profiles);
+struct hashEl* hel;
+while ((hel = hashNext(&cookie)) != NULL)
+ slAddHead(&names, slNameNew(hel->name));
+return names;
+}
+
static void replaceStr(char **str, char *val)
/* free str and replace with clone new value */
{
freeMem(*str);