From 3d0e6b3835379d545189563ce25ffe37ed340703 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 23 Nov 2003 13:44:19 +0000 Subject: 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) --- source4/librpc/rpc/dcerpc.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source4/librpc/rpc') 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; +}; -- cgit