summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/ejsrpc.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-09 11:48:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:27 -0500
commitcd88764ba16bc35f0209fbdf1a975f10bd3eb9ac (patch)
tree6c01730a1da0b77eb7e8bbdeaa7e2d0a096e84d5 /source4/scripting/ejs/ejsrpc.h
parent3b03ccb2f76d69ba763c9b202215beda62323388 (diff)
downloadsamba-cd88764ba16bc35f0209fbdf1a975f10bd3eb9ac.tar.gz
samba-cd88764ba16bc35f0209fbdf1a975f10bd3eb9ac.tar.bz2
samba-cd88764ba16bc35f0209fbdf1a975f10bd3eb9ac.zip
r8260: added an init based registration system for the generated ejs rpc code, so
adding a new pipe only involves changes to librpc/config.mk (This used to be commit 0e54fa446665f380e9c46723a6e2be5a08b8d51c)
Diffstat (limited to 'source4/scripting/ejs/ejsrpc.h')
-rw-r--r--source4/scripting/ejs/ejsrpc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/scripting/ejs/ejsrpc.h b/source4/scripting/ejs/ejsrpc.h
index c45b66d385..44b4b7dd96 100644
--- a/source4/scripting/ejs/ejsrpc.h
+++ b/source4/scripting/ejs/ejsrpc.h
@@ -36,6 +36,13 @@ typedef NTSTATUS (*ejs_push_function_t)(struct ejs_rpc *, struct MprVar *, const
NTSTATUS ejs_panic(struct ejs_rpc *ejs, const char *why);
void ejs_set_switch(struct ejs_rpc *ejs, uint32_t switch_var);
+typedef void (*ejs_setup_t)(void);
+typedef void (*ejs_constants_t)(int);
+
+NTSTATUS smbcalls_register_ejs(const char *name,
+ ejs_setup_t setup,
+ ejs_constants_t constants);
+
int ejs_rpc_call(int eid, int argc, struct MprVar **argv, const char *callname,
ejs_pull_function_t ejs_pull, ejs_push_function_t ejs_push);