s4:librpc/rpc: finaly make struct rpc_request and enum rpc_request_state private
authorStefan Metzmacher <metze@samba.org>
Sun, 13 Mar 2011 15:24:55 +0000 (16:24 +0100)
committerStefan Metzmacher <metze@samba.org>
Sun, 13 Mar 2011 16:46:02 +0000 (17:46 +0100)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Mar 13 17:46:02 CET 2011 on sn-devel-104

source4/librpc/rpc/dcerpc.c
source4/librpc/rpc/dcerpc.h

index bb7c4c536d5c10599c308e24dec598272b090996..cc7286686675c61fa7241cfbcf5c5094479edc81 100644 (file)
 #include "lib/util/tevent_ntstatus.h"
 #include "librpc/rpc/rpc_common.h"
 
+enum rpc_request_state {
+       RPC_REQUEST_QUEUED,
+       RPC_REQUEST_PENDING,
+       RPC_REQUEST_DONE
+};
+
+/*
+  handle for an async dcerpc request
+*/
+struct rpc_request {
+       struct rpc_request *next, *prev;
+       struct dcerpc_pipe *p;
+       NTSTATUS status;
+       uint32_t call_id;
+       enum rpc_request_state state;
+       DATA_BLOB payload;
+       uint32_t flags;
+       uint32_t fault_code;
+
+       /* this is used to distinguish bind and alter_context requests
+          from normal requests */
+       void (*recv_handler)(struct rpc_request *conn, 
+                            DATA_BLOB *blob, struct ncacn_packet *pkt);
+
+       const struct GUID *object;
+       uint16_t opnum;
+       DATA_BLOB request_data;
+       bool ignore_timeout;
+
+       /* use by the ndr level async recv call */
+       struct {
+               const struct ndr_interface_table *table;
+               uint32_t opnum;
+               void *struct_ptr;
+               TALLOC_CTX *mem_ctx;
+       } ndr;
+
+       struct {
+               void (*callback)(struct rpc_request *);
+               void *private_data;
+       } async;
+};
+
 _PUBLIC_ NTSTATUS dcerpc_init(struct loadparm_context *lp_ctx)
 {
        return gensec_init(lp_ctx);
index a6ac8c37ebcb2250e6b329ddfe438e072c781921..22f4b1e5941e0dcbdcecf3c111a2bb58b8b3c34d 100644 (file)
@@ -53,6 +53,7 @@ struct dcecli_security {
 /*
   this holds the information that is not specific to a particular rpc context_id
 */
+struct rpc_request;
 struct dcecli_connection {
        uint32_t call_id;
        uint32_t srv_max_xmit_frag;
@@ -190,49 +191,6 @@ struct dcerpc_pipe_connect {
 };
 
 
-enum rpc_request_state {
-       RPC_REQUEST_QUEUED,
-       RPC_REQUEST_PENDING,
-       RPC_REQUEST_DONE
-};
-
-/*
-  handle for an async dcerpc request
-*/
-struct rpc_request {
-       struct rpc_request *next, *prev;
-       struct dcerpc_pipe *p;
-       NTSTATUS status;
-       uint32_t call_id;
-       enum rpc_request_state state;
-       DATA_BLOB payload;
-       uint32_t flags;
-       uint32_t fault_code;
-
-       /* this is used to distinguish bind and alter_context requests
-          from normal requests */
-       void (*recv_handler)(struct rpc_request *conn, 
-                            DATA_BLOB *blob, struct ncacn_packet *pkt);
-
-       const struct GUID *object;
-       uint16_t opnum;
-       DATA_BLOB request_data;
-       bool ignore_timeout;
-
-       /* use by the ndr level async recv call */
-       struct {
-               const struct ndr_interface_table *table;
-               uint32_t opnum;
-               void *struct_ptr;
-               TALLOC_CTX *mem_ctx;
-       } ndr;
-
-       struct {
-               void (*callback)(struct rpc_request *);
-               void *private_data;
-       } async;
-};
-
 struct epm_tower;
 struct epm_floor;