summaryrefslogtreecommitdiff
path: root/source4/lib/messaging/irpc.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-03 16:05:38 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-03 17:02:11 +0200
commit31d3227074a63ab7f66f74eca019884bb2e236da (patch)
treec94f21a8ea5723dd5091e2850cc751568f79d60d /source4/lib/messaging/irpc.h
parentdd7154234c267254cea199638062c5be1cd8b253 (diff)
downloadsamba-31d3227074a63ab7f66f74eca019884bb2e236da.tar.gz
samba-31d3227074a63ab7f66f74eca019884bb2e236da.tar.bz2
samba-31d3227074a63ab7f66f74eca019884bb2e236da.zip
s4:lib/messaging: make irpc_request private and remove unused code
metze
Diffstat (limited to 'source4/lib/messaging/irpc.h')
-rw-r--r--source4/lib/messaging/irpc.h40
1 files changed, 1 insertions, 39 deletions
diff --git a/source4/lib/messaging/irpc.h b/source4/lib/messaging/irpc.h
index 88f142ee1e..4b497959ee 100644
--- a/source4/lib/messaging/irpc.h
+++ b/source4/lib/messaging/irpc.h
@@ -54,49 +54,11 @@ typedef NTSTATUS (*irpc_function_t)(struct irpc_message *, void *r);
NDR_ ## funcname, \
(irpc_function_t)function, private_data)
-/* make a irpc call */
-#define IRPC_CALL(msg_ctx, server_id, pipename, funcname, ptr, ctx) \
- irpc_call(msg_ctx, server_id, &ndr_table_ ## pipename, NDR_ ## funcname, ptr, ctx)
-
-#define IRPC_CALL_SEND(msg_ctx, server_id, pipename, funcname, ptr, ctx) \
- irpc_call_send(msg_ctx, server_id, &ndr_table_ ## pipename, NDR_ ## funcname, ptr, ctx)
-
-
-/*
- a pending irpc call
-*/
-struct irpc_request {
- struct messaging_context *msg_ctx;
- const struct ndr_interface_table *table;
- int callnum;
- int callid;
- void *r;
- NTSTATUS status;
- bool done;
- bool reject_free;
- TALLOC_CTX *mem_ctx;
- struct {
- void (*fn)(struct irpc_request *);
- void *private_data;
- } async;
- struct {
- void (*handler)(struct irpc_request *irpc, struct irpc_message *m);
- void *private_data;
- } incoming;
-};
+struct ndr_interface_table;
NTSTATUS irpc_register(struct messaging_context *msg_ctx,
const struct ndr_interface_table *table,
int call, irpc_function_t fn, void *private_data);
-struct irpc_request *irpc_call_send(struct messaging_context *msg_ctx,
- struct server_id server_id,
- const struct ndr_interface_table *table,
- int callnum, void *r, TALLOC_CTX *ctx);
-NTSTATUS irpc_call_recv(struct irpc_request *irpc);
-NTSTATUS irpc_call(struct messaging_context *msg_ctx,
- struct server_id server_id,
- const struct ndr_interface_table *table,
- int callnum, void *r, TALLOC_CTX *ctx);
struct dcerpc_binding_handle *irpc_binding_handle(TALLOC_CTX *mem_ctx,
struct messaging_context *msg_ctx,