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:
parent
e906424178
commit
92c3979433
|
@ -36,7 +36,7 @@ typedef struct _RpcAuthInfo
|
||||||
TimeStamp exp;
|
TimeStamp exp;
|
||||||
} RpcAuthInfo;
|
} RpcAuthInfo;
|
||||||
|
|
||||||
struct protseq_ops;
|
struct connection_ops;
|
||||||
|
|
||||||
typedef struct _RpcConnection
|
typedef struct _RpcConnection
|
||||||
{
|
{
|
||||||
|
@ -45,7 +45,7 @@ typedef struct _RpcConnection
|
||||||
BOOL server;
|
BOOL server;
|
||||||
LPSTR NetworkAddr;
|
LPSTR NetworkAddr;
|
||||||
LPSTR Endpoint;
|
LPSTR Endpoint;
|
||||||
const struct protseq_ops *ops;
|
const struct connection_ops *ops;
|
||||||
USHORT MaxTransmissionSize;
|
USHORT MaxTransmissionSize;
|
||||||
/* The active interface bound to server. */
|
/* The active interface bound to server. */
|
||||||
RPC_SYNTAX_IDENTIFIER ActiveInterface;
|
RPC_SYNTAX_IDENTIFIER ActiveInterface;
|
||||||
|
@ -61,7 +61,7 @@ typedef struct _RpcConnection
|
||||||
struct list conn_pool_entry;
|
struct list conn_pool_entry;
|
||||||
} RpcConnection;
|
} RpcConnection;
|
||||||
|
|
||||||
struct protseq_ops {
|
struct connection_ops {
|
||||||
const char *name;
|
const char *name;
|
||||||
unsigned char epm_protocols[2]; /* only floors 3 and 4. see http://www.opengroup.org/onlinepubs/9629399/apdxl.htm */
|
unsigned char epm_protocols[2]; /* only floors 3 and 4. see http://www.opengroup.org/onlinepubs/9629399/apdxl.htm */
|
||||||
RpcConnection *(*alloc)(void);
|
RpcConnection *(*alloc)(void);
|
||||||
|
|
|
@ -709,7 +709,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_parse_top_of_tower(const unsigned char *to
|
||||||
return RPC_S_OK;
|
return RPC_S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct protseq_ops protseq_list[] = {
|
static const struct connection_ops protseq_list[] = {
|
||||||
{ "ncacn_np",
|
{ "ncacn_np",
|
||||||
{ EPM_PROTOCOL_NCACN, EPM_PROTOCOL_SMB },
|
{ EPM_PROTOCOL_NCACN, EPM_PROTOCOL_SMB },
|
||||||
rpcrt4_conn_np_alloc,
|
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])
|
#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;
|
int i;
|
||||||
for(i=0; i<MAX_PROTSEQ; 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 Protseq, LPCSTR NetworkAddr, LPCSTR Endpoint,
|
||||||
LPCSTR NetworkOptions, RpcAuthInfo* AuthInfo, RpcBinding* Binding)
|
LPCSTR NetworkOptions, RpcAuthInfo* AuthInfo, RpcBinding* Binding)
|
||||||
{
|
{
|
||||||
const struct protseq_ops *ops;
|
const struct connection_ops *ops;
|
||||||
RpcConnection* NewConnection;
|
RpcConnection* NewConnection;
|
||||||
|
|
||||||
ops = rpcrt4_get_protseq_ops(Protseq);
|
ops = rpcrt4_get_protseq_ops(Protseq);
|
||||||
|
@ -875,7 +875,7 @@ RPC_STATUS RpcTransport_GetTopOfTower(unsigned char *tower_data,
|
||||||
const char *endpoint)
|
const char *endpoint)
|
||||||
{
|
{
|
||||||
twr_empty_floor_t *protocol_floor;
|
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;
|
*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 *protocol_floor;
|
||||||
const twr_empty_floor_t *floor4;
|
const twr_empty_floor_t *floor4;
|
||||||
const struct protseq_ops *protseq_ops = NULL;
|
const struct connection_ops *protseq_ops = NULL;
|
||||||
RPC_STATUS status;
|
RPC_STATUS status;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue