X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.c;h=44a98d021bbf27470c04e1e362a7e5a8ecb3d733;hb=7eda06f15186213bc85e7fa448a48e25011ba8f5;hp=45e36721a170baa86aba19403a5cf164289f70fc;hpb=141e6923590a8099d7403b5b8d7a5fac5710ed5c;p=citadel.git diff --git a/citadel/citserver.c b/citadel/citserver.c index 45e36721a..44a98d021 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -152,6 +152,17 @@ void cleanup_stuff(void *arg) } +/* + * Get a dynamic symbol number for per-session user data. + * This API call should be made only ONCE per symbol per citserver run. + */ +int CtdlGetDynamicSymbol() +{ + static unsigned int next_symbol = SYM_MAX; + return ++next_symbol; +} + + /* * Return a pointer to some generic per-session user data.