summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-23 13:44:19 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-23 13:44:19 +0000
commit3d0e6b3835379d545189563ce25ffe37ed340703 (patch)
tree6941a15bff5d7132879907999bdd4ce5938c5b2a /source4/librpc/rpc
parent66694c571f2fbefda4cb70d944497bd9a9d45a7c (diff)
downloadsamba-3d0e6b3835379d545189563ce25ffe37ed340703.tar.gz
samba-3d0e6b3835379d545189563ce25ffe37ed340703.tar.bz2
samba-3d0e6b3835379d545189563ce25ffe37ed340703.zip
added a tool called 'ndrdump' that allows you to dump NDR data
according to the current IDL taking the data from a file. In combination with a little hack to ethereal to extract data this is a quite powerful IDL development tool. (This used to be commit 229a325c3cf0d4dc1e910ed32e1d7391040aeba1)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h
index ec6189302a..6ba0f8429a 100644
--- a/source4/librpc/rpc/dcerpc.h
+++ b/source4/librpc/rpc/dcerpc.h
@@ -48,3 +48,20 @@ struct dcerpc_pipe {
#define DCERPC_DEBUG_VALIDATE_IN 4
#define DCERPC_DEBUG_VALIDATE_OUT 8
#define DCERPC_DEBUG_VALIDATE_BOTH (DCERPC_DEBUG_VALIDATE_IN | DCERPC_DEBUG_VALIDATE_OUT)
+
+/*
+ this is used to find pointers to calls
+*/
+struct dcerpc_interface_call {
+ const char *name;
+ size_t struct_size;
+ NTSTATUS (*ndr_push)(struct ndr_push *, int , void *);
+ NTSTATUS (*ndr_pull)(struct ndr_pull *, int , void *);
+ void (*ndr_print)(struct ndr_print *, const char *, int, void *);
+};
+
+struct dcerpc_interface_table {
+ const char *name;
+ uint32 num_calls;
+ const struct dcerpc_interface_call *calls;
+};