rpcrt4: Rename protseq_ops to connection_ops to reflect the fact that the functions operate on an RpcConnection object, not an RpcServerProtseq object.

Robert Shearman rob at codeweavers.com
Mon Oct 16 10:47:39 CDT 2006


---
  dlls/rpcrt4/rpc_binding.h   |    6 +++---
  dlls/rpcrt4/rpc_transport.c |   10 +++++-----
  2 files changed, 8 insertions(+), 8 deletions(-)
-------------- next part --------------
diff --git a/dlls/rpcrt4/rpc_binding.h b/dlls/rpcrt4/rpc_binding.h
index bf089a6..221918d 100644
--- a/dlls/rpcrt4/rpc_binding.h
+++ b/dlls/rpcrt4/rpc_binding.h
@@ -36,7 +36,7 @@ typedef struct _RpcAuthInfo
   TimeStamp exp;
 } RpcAuthInfo;
 
-struct protseq_ops;
+struct connection_ops;
 
 typedef struct _RpcConnection
 {
@@ -45,7 +45,7 @@ typedef struct _RpcConnection
   BOOL server;
   LPSTR NetworkAddr;
   LPSTR Endpoint;
-  const struct protseq_ops *ops;
+  const struct connection_ops *ops;
   USHORT MaxTransmissionSize;
   /* The active interface bound to server. */
   RPC_SYNTAX_IDENTIFIER ActiveInterface;
@@ -61,7 +61,7 @@ typedef struct _RpcConnection
   struct list conn_pool_entry;
 } RpcConnection;
 
-struct protseq_ops {
+struct connection_ops {
   const char *name;
   unsigned char epm_protocols[2]; /* only floors 3 and 4. see http://www.opengroup.org/onlinepubs/9629399/apdxl.htm */
   RpcConnection *(*alloc)(void);
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 92384e8..205613d 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -838,7 +838,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_pa
     return RPC_S_OK;
 }
 
-static const struct protseq_ops protseq_list[] = {
+static const struct connection_ops protseq_list[] = {
   { "ncacn_np",
     { EPM_PROTOCOL_NCACN, EPM_PROTOCOL_SMB },
     rpcrt4_conn_np_alloc,
@@ -879,7 +879,7 @@ static const struct protseq_ops protseq_
 
 #define MAX_PROTSEQ (sizeof protseq_list / sizeof protseq_list[0])
 
-static const struct protseq_ops *rpcrt4_get_protseq_ops(const char *protseq)
+static const struct connection_ops *rpcrt4_get_protseq_ops(const char *protseq)
 {
   int i;
   for(i=0; i<MAX_PROTSEQ; i++)
@@ -908,7 +908,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcCo
     LPCSTR Protseq, LPCSTR NetworkAddr, LPCSTR Endpoint,
     LPCSTR NetworkOptions, RpcAuthInfo* AuthInfo, RpcBinding* Binding)
 {
-  const struct protseq_ops *ops;
+  const struct connection_ops *ops;
   RpcConnection* NewConnection;
 
   ops = rpcrt4_get_protseq_ops(Protseq);
@@ -1004,7 +1004,7 @@ RPC_STATUS RpcTransport_GetTopOfTower(un
                                       const char *endpoint)
 {
     twr_empty_floor_t *protocol_floor;
-    const struct protseq_ops *protseq_ops = rpcrt4_get_protseq_ops(protseq);
+    const struct connection_ops *protseq_ops = rpcrt4_get_protseq_ops(protseq);
 
     *tower_size = 0;
 
@@ -1042,7 +1042,7 @@ RPC_STATUS RpcTransport_ParseTopOfTower(
 {
     const twr_empty_floor_t *protocol_floor;
     const twr_empty_floor_t *floor4;
-    const struct protseq_ops *protseq_ops = NULL;
+    const struct connection_ops *protseq_ops = NULL;
     RPC_STATUS status;
     int i;
 


More information about the wine-patches mailing list