f0950c077f8427a3f65e8cc7ab37a42446041ae6
max
  Wed Sep 16 00:18:19 2015 -0700
libifying cartGetPosition because this code is needed twice, once in
hgTracks and also in cart.c for setting the page title. refs #16022,
note 18

diff --git src/hg/inc/cart.h src/hg/inc/cart.h
index 9fece3c..775271a 100644
--- src/hg/inc/cart.h
+++ src/hg/inc/cart.h
@@ -577,17 +577,27 @@
 
 void cartFlushHubWarnings();
 /* flush the hub errors (if any) */
 
 void cartCheckForCustomTracks(struct cart *cart, struct dyString *dyMessage);
 /* Scan cart for ctfile_<db> variables.  Tally up the databases that have
  * live custom tracks and those that have expired custom tracks. */
 /* While we're at it, also look for saved blat results. */
 
 #define CART_HAS_DEFAULT_VISIBILITY "defaultsSet"
 
 extern void cartHideDefaultTracks(struct cart *cart);
 /* Hide all the tracks who have default visibilities in trackDb
  * that are something other than hide.  Do this only if the
  * variable CART_HAS_DEFAULT_VISIBILITY is set in the cart.  */
+
+char *cartGetPosition(struct cart *cart, char *database);
+/* get the current position in cart as a string chr:start-end.
+ * This can handle the special CGI params 'default' and 'lastDbPos'
+ * Returned value has to be freed. Returns default position of assembly 
+ * if no position set in cart nor as CGI var.
+*/
+
+void cartSetDbPosition(struct cart *cart, char *database, char *position);
+/* set the 'position.db' variable in the cart */
 #endif /* CART_H */