librpc/ndr: add ndr_interface_call_pipe
authorStefan Metzmacher <metze@samba.org>
Sun, 19 Sep 2010 11:56:13 +0000 (13:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 Mar 2011 15:19:27 +0000 (16:19 +0100)
metze
(cherry picked from commit eceea8641e9079534a15ce01d24ef94acbe49d98)

librpc/ndr/libndr.h

index 21e4bdaeec6f1e6fe4b37565d56629ccb2596312..15fc08a9b2e03af02281b540a782920bcff8e65a 100644 (file)
@@ -330,12 +330,28 @@ extern const struct ndr_syntax_id ndr_transfer_syntax;
 extern const struct ndr_syntax_id ndr64_transfer_syntax;
 extern const struct ndr_syntax_id null_ndr_syntax_id;
 
+struct ndr_interface_call_pipe {
+       const char *name;
+       const char *chunk_struct_name;
+       size_t chunk_struct_size;
+       ndr_push_flags_fn_t ndr_push;
+       ndr_pull_flags_fn_t ndr_pull;
+       ndr_print_fn_t ndr_print;
+};
+
+struct ndr_interface_call_pipes {
+       uint32_t num_pipes;
+       const struct ndr_interface_call_pipe *pipes;
+};
+
 struct ndr_interface_call {
        const char *name;
        size_t struct_size;
        ndr_push_flags_fn_t ndr_push;
        ndr_pull_flags_fn_t ndr_pull;
        ndr_print_function_t ndr_print;
+       struct ndr_interface_call_pipes in_pipes;
+       struct ndr_interface_call_pipes out_pipes;
 };
 
 struct ndr_interface_string_array {