diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-17 01:37:42 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-17 01:37:42 +0200 |
commit | bbb826bdac54e3fec3426fe6d8e23790abbbc44f (patch) | |
tree | bb34465915176bd2b6568a9de94b96f4fea094ee /source4/lib/appweb/mpr/miniMpr.c | |
parent | a145d21de63a5cb2d347c1281ed437cab6a95569 (diff) | |
download | samba-bbb826bdac54e3fec3426fe6d8e23790abbbc44f.tar.gz samba-bbb826bdac54e3fec3426fe6d8e23790abbbc44f.tar.bz2 samba-bbb826bdac54e3fec3426fe6d8e23790abbbc44f.zip |
Add convenience function for getting at event context from ejs code.
(This used to be commit b659e83cd6b627dd0ae04064bccff7220a5bd1ce)
Diffstat (limited to 'source4/lib/appweb/mpr/miniMpr.c')
-rw-r--r-- | source4/lib/appweb/mpr/miniMpr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/appweb/mpr/miniMpr.c b/source4/lib/appweb/mpr/miniMpr.c index 52b23608aa..381815eb23 100644 --- a/source4/lib/appweb/mpr/miniMpr.c +++ b/source4/lib/appweb/mpr/miniMpr.c @@ -31,6 +31,7 @@ #include "miniMpr.h" #include "param/param.h" +#include "lib/events/events.h" /************************************ Code ************************************/ #if !BLD_APPWEB @@ -50,6 +51,11 @@ void *mprMemCtx(void) return mpr_ctx; } +struct event_context *mprEventCtx(void) +{ + return event_context_find(mprMemCtx()); +} + /* return the loadparm context being used for all ejs variables */ struct loadparm_context *mprLpCtx(void) { |