6629bda6c730982c3e4602ec78ff3b0cbf701c61
braney
  Tue May 25 17:31:38 2021 -0700
implement cart editing.  Needs doc.  ;-)

diff --git src/hg/lib/cart.c src/hg/lib/cart.c
index 7327657..b83b933 100644
--- src/hg/lib/cart.c
+++ src/hg/lib/cart.c
@@ -3645,15 +3645,27 @@
     }
 heightPer = cartOptionalStringClosestToHome(theCart, tdb, parentLevel, HEIGHTPER);
 /*      Clip the cart value to range [minHeightPixels:maxHeightPixels] */
 if (heightPer) defaultHeight = min( maxHeightPixels, atoi(heightPer));
 else defaultHeight = defaultHeightPixels;
 defaultHeight = max(minHeightPixels, defaultHeight);
 
 *retMin = minHeightPixels;
 *retMax = maxHeightPixels;
 *retDefault = defaultHeightPixels;
 *retCurrent = defaultHeight;
 
 freeMem(tdbDefault);
 } 
 
+unsigned cartGetVersion(struct cart *cart)
+/* Get the current version of the cart, which is stored in the variable "cartVersion" */
+{
+unsigned ret = cartUsualInt(cart, "cartVersion", 0);
+return ret;
+}
+
+void cartSetVersion(struct cart *cart, unsigned version)
+/* Set the current version of the cart, which is stored in the variable "cartVersion" */
+{
+cartSetInt(cart, "cartVersion", version);
+}