librpc/ndr: add new ndr_compression_state
[metze/samba/wip.git] / librpc / ndr / libndr.h
index 072fd662e6409381a9f4b3904c5f57f9a618297b..41e68ee7b984e30b11c1613d611a9d515bfebefd 100644 (file)
@@ -47,6 +47,8 @@ struct ndr_token_list {
        uint32_t count;
 };
 
+struct ndr_compression_state;
+
 /* this is the base structure passed to routines that
    parse MSRPC formatted data
 
@@ -71,6 +73,8 @@ struct ndr_pull {
        struct ndr_token_list array_length_list;
        struct ndr_token_list switch_list;
 
+       struct ndr_compression_state *cstate;
+
        TALLOC_CTX *current_mem_ctx;
 
        /* this is used to ensure we generate unique reference IDs
@@ -97,6 +101,8 @@ struct ndr_push {
        struct ndr_token_list dns_string_list;
        struct ndr_token_list full_ptr_list;
 
+       struct ndr_compression_state *cstate;
+
        /* this is used to ensure we generate unique reference IDs */
        uint32_t ptr_count;
 };