bf0f2a64192b5c80db6ff314a3fa66266976ea8f braney Tue Jun 11 12:57:07 2019 -0700 ongoing work on trackDb caching diff --git src/inc/localmem.h src/inc/localmem.h index af9339c..b96e387 100644 --- src/inc/localmem.h +++ src/inc/localmem.h @@ -71,16 +71,19 @@ #define lmCloneVar(lm, pt) lmCloneMem(lm, pt, sizeof((pt)[0])) /* Allocate copy of a structure. */ #define lmAllocArray(lm, pt, size) (pt = lmAlloc(lm, sizeof(*pt) * (size))) /* Shortcut to allocating an array in local mem and * assigning pointer to it. */ char **lmCloneRow(struct lm *lm, char **row, int rowSize); /* Allocate an array of strings and its contents cloned from row. */ char **lmCloneRowExt(struct lm *lm, char **row, int rowOutSize, int rowInSize); /* Allocate an array of strings with rowOutSize elements. Clone the first rowInSize elements of * row into the new array; leave remaining elements NULL if rowOutSize is greater than rowInSize. * rowOutSize must be greater than or equal to rowInSize. */ +void lmRefAdd(struct lm *lm, struct slRef **pRefList, void *val); +/* Add reference to list. */ + #endif//ndef LOCALMEM_H