d676f45096db580dfc143740ca2c75e970b45978 braney Wed Nov 16 13:15:03 2022 -0800 move dbSnp153 to the archive diff --git src/hg/cgilib/cartRewrite.c src/hg/cgilib/cartRewrite.c index 014a9f9..62e65b8 100644 --- src/hg/cgilib/cartRewrite.c +++ src/hg/cgilib/cartRewrite.c @@ -1,39 +1,41 @@ /* cartRewrite -- routines to enable cart rewrites. Carts and trackDbs * have a version number and this code knows how to make the cart compatble * with trackDb. */ /* Copyright (C) 2021 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "cart.h" #include "hgConfig.h" void cartEdit0(struct cart *cart); void cartEdit1(struct cart *cart); +void cartEdit2(struct cart *cart); struct cartRewrite { void (*func)(struct cart *cart); }; // Here's the list of cart rewrite functions static struct cartRewrite cartRewrites[] = { { cartEdit0}, { cartEdit1}, +{ cartEdit2}, }; void cartRewrite(struct cart *cart, unsigned trackDbCartVersion, unsigned cartVersion) /* Rewrite the cart to update it to expectations of trackDb. */ { if (sameString(cfgOptionDefault("cartVersion", "on"), "off")) return; // call the rewrite functions to bring us up to the trackDb cart version for(; cartVersion < trackDbCartVersion; cartVersion++) { // if we don't have a rewrite for this increment, bail out // with a warning in the error_log if (cartVersion >= ArraySize(cartRewrites)) {