diff options
Diffstat (limited to 'source4/lib/ejs/miniMpr.c')
-rw-r--r-- | source4/lib/ejs/miniMpr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/ejs/miniMpr.c b/source4/lib/ejs/miniMpr.c index 2094052b39..8b969289b0 100644 --- a/source4/lib/ejs/miniMpr.c +++ b/source4/lib/ejs/miniMpr.c @@ -37,11 +37,18 @@ static void *mpr_ctx; +/* set the memory context to be used for all ejs variables */ void mprSetCtx(TALLOC_CTX *ctx) { mpr_ctx = ctx; } +/* return the memory context being used for all ejs variables */ +void *mprMemCtx(void) +{ + return mpr_ctx; +} + void mprFree(void *ptr) { talloc_free(ptr); |