summaryrefslogtreecommitdiff
path: root/source4/lib/messaging/irpc.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-06 05:47:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:41 -0500
commit0093e1b62cf02d1c3bdc3f18c8c4cc3d0abbf776 (patch)
treee3904c5216e2f7f1d3d957cc08faf1b4276d52e8 /source4/lib/messaging/irpc.h
parent34ffdb12fc519dd5232082103bbe2f44d11f9ae8 (diff)
downloadsamba-0093e1b62cf02d1c3bdc3f18c8c4cc3d0abbf776.tar.gz
samba-0093e1b62cf02d1c3bdc3f18c8c4cc3d0abbf776.tar.bz2
samba-0093e1b62cf02d1c3bdc3f18c8c4cc3d0abbf776.zip
r7320: added support for a private pointer in irpc registered handlers
(This used to be commit eec521dffd4ca9efa7f6e31c50cf1ff365aae209)
Diffstat (limited to 'source4/lib/messaging/irpc.h')
-rw-r--r--source4/lib/messaging/irpc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/messaging/irpc.h b/source4/lib/messaging/irpc.h
index 99a2d60f35..cba17a2c97 100644
--- a/source4/lib/messaging/irpc.h
+++ b/source4/lib/messaging/irpc.h
@@ -25,6 +25,7 @@
*/
struct irpc_message {
uint32_t from;
+ void *private;
};
/* don't allow calls to take too long */
@@ -35,10 +36,10 @@ struct irpc_message {
typedef NTSTATUS (*irpc_function_t)(struct irpc_message *, void *r);
/* register a server function with the irpc messaging system */
-#define IRPC_REGISTER(msg_ctx, pipename, funcname, function) \
+#define IRPC_REGISTER(msg_ctx, pipename, funcname, function, private) \
irpc_register(msg_ctx, &dcerpc_table_ ## pipename, \
DCERPC_ ## funcname, \
- (irpc_function_t)function)
+ (irpc_function_t)function, private)
/* make a irpc call */
#define IRPC_CALL(msg_ctx, server_id, pipename, funcname, ptr) \
@@ -84,7 +85,7 @@ void messaging_deregister(struct messaging_context *msg, uint32_t msg_type, void
NTSTATUS irpc_register(struct messaging_context *msg_ctx,
const struct dcerpc_interface_table *table,
- int call, irpc_function_t fn);
+ int call, irpc_function_t fn, void *private);
struct irpc_request *irpc_call_send(struct messaging_context *msg_ctx,
uint32_t server_id,
const struct dcerpc_interface_table *table,