533112afe2a2005e80cdb1f82904ea65032d4302
braney
  Sat Oct 2 11:37:34 2021 -0700
split hg/lib into two separate libaries, one only used by the cgis

diff --git src/hg/cgilib/bedCart.c src/hg/cgilib/bedCart.c
new file mode 100644
index 0000000..67e98b0
--- /dev/null
+++ src/hg/cgilib/bedCart.c
@@ -0,0 +1,37 @@
+/*	bedCart.c - take care of parsing values from the
+ *	bed trackDb optional settings and the same values that may be
+ *	in the cart.
+ */
+
+/* Copyright (C) 2014 The Regents of the University of California 
+ * See README in this or parent directory for licensing information. */
+#include "common.h"
+#include "jksql.h"
+#include "trackDb.h"
+#include "cart.h"
+#include "dystring.h"
+#include "bedCart.h"
+
+
+#if defined(NOT_YET)
+extern struct cart *cart;      /* defined in hgTracks.c or hgTrackUi */
+/*	This option isn't in the cart yet ... maybe later	*/
+#endif
+
+/******	itemRgb - not on by default **************************/
+boolean bedItemRgb(struct trackDb *tdb)
+{
+char *Default="Off";	/* anything different than this will turn it on */
+char *tdbDefault = (char *)NULL;
+
+if (tdb)
+    tdbDefault = trackDbSettingClosestToHome(tdb, OPT_ITEM_RGB);
+
+if (tdbDefault)
+    {
+    if (differentWord(Default,tdbDefault))
+	return TRUE;
+    }
+
+return FALSE;
+}	/*	boolean bedItemRgb(struct trackDb *tdb)	*/