rpcrt4: Rename protseq_ops to connection_ops to reflect the fact that

the functions operate on an RpcConnection object, not an
RpcServerProtseq object.
This commit is contained in:
Robert Shearman 2006-10-16 16:47:39 +01:00 committed by Alexandre Julliard
parent e906424178
commit 92c3979433
2 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -709,7 +709,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_parse_top_of_tower(const unsigned char *to
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,
@ -750,7 +750,7 @@ static const struct protseq_ops protseq_list[] = {
#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++)
@ -779,7 +779,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server,
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);
@ -875,7 +875,7 @@ RPC_STATUS RpcTransport_GetTopOfTower(unsigned char *tower_data,
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;
@ -913,7 +913,7 @@ RPC_STATUS RpcTransport_ParseTopOfTower(const unsigned char *tower_data,
{
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;