librpc/rpc: add dcerpc_binding_[g|s]et_assoc_group_id()
authorStefan Metzmacher <metze@samba.org>
Sat, 25 Jan 2014 10:22:52 +0000 (11:22 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Feb 2014 10:54:15 +0000 (11:54 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
librpc/rpc/binding.c
librpc/rpc/rpc_common.h

index 984f5ee8af81e907767fff9d5ee5b3dc751bfb3c..132739cae784eecea45d10fcf8ce3ff4fb9a61d8 100644 (file)
@@ -530,6 +530,18 @@ _PUBLIC_ void dcerpc_binding_get_auth_info(const struct dcerpc_binding *b,
        }
 }
 
+_PUBLIC_ uint32_t dcerpc_binding_get_assoc_group_id(const struct dcerpc_binding *b)
+{
+       return b->assoc_group_id;
+}
+
+_PUBLIC_ NTSTATUS dcerpc_binding_set_assoc_group_id(struct dcerpc_binding *b,
+                                                   uint32_t assoc_group_id)
+{
+       b->assoc_group_id = assoc_group_id;
+       return NT_STATUS_OK;
+}
+
 _PUBLIC_ const char *dcerpc_binding_get_string_option(const struct dcerpc_binding *b,
                                                      const char *name)
 {
index 22bb26a910cdb6c0eb1a1fcd9dd323395c533ae2..4dfc46a98db94978842b81f74dc963c3c1f712db 100644 (file)
@@ -142,6 +142,9 @@ NTSTATUS dcerpc_binding_set_transport(struct dcerpc_binding *b,
 void dcerpc_binding_get_auth_info(const struct dcerpc_binding *b,
                                  enum dcerpc_AuthType *_auth_type,
                                  enum dcerpc_AuthLevel *_auth_level);
+uint32_t dcerpc_binding_get_assoc_group_id(const struct dcerpc_binding *b);
+NTSTATUS dcerpc_binding_set_assoc_group_id(struct dcerpc_binding *b,
+                                          uint32_t assoc_group_id);
 const char *dcerpc_binding_get_string_option(const struct dcerpc_binding *b,
                                             const char *name);
 char *dcerpc_binding_copy_string_option(TALLOC_CTX *mem_ctx,