6629bda6c730982c3e4602ec78ff3b0cbf701c61 braney Tue May 25 17:31:38 2021 -0700 implement cart editing. Needs doc. ;-) diff --git src/hg/inc/cart.h src/hg/inc/cart.h index ca3822d..60e72e6 100644 --- src/hg/inc/cart.h +++ src/hg/inc/cart.h @@ -648,17 +648,25 @@ void cartSetDbPosition(struct cart *cart, char *database, struct cart *lastDbPosCart); /* Set the 'position.db' variable in the cart.*/ void cartSetLastPosition(struct cart *cart, char *position, struct hash *oldVars); /* If position and oldVars are non-NULL, and oldVars' position is different, add it to the cart * as lastPosition. This is called by cartHtmlShell{,WithHead} but not other cart openers; * it should be called after cartGetPosition or equivalent. */ void cartTdbFetchMinMaxPixels(struct cart *theCart, struct trackDb *tdb, int defaultMin, int defaultMax, int defaultDefault, int *retMin, int *retMax, int *retDefault, int *retCurrent); /* Configure maximum track height for variable height tracks (e.g. wiggle, barchart) * Initial height and limits may be defined in trackDb with the maxHeightPixels string, * Or user requested limits are defined in the cart. */ +unsigned cartGetVersion(struct cart *cart); +/* Get the current version of the cart, which is stored in the variable "cartVersion" */ + +void cartSetVersion(struct cart *cart, unsigned version); +/* Set the current version of the cart, which is stored in the variable "cartVersion" */ + +void cartRewrite(struct cart *cart, unsigned trackDbCartVersion, unsigned cartVersion); +/* Rewrite the cart to update it to expectations of trackDb. */ #endif /* CART_H */