1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

librpc/rpc: move struct dcerpc_binding to rpc_common.h

metze
This commit is contained in:
Stefan Metzmacher 2011-03-13 14:10:42 +01:00
parent 7b7baecf1a
commit 08dca92499
3 changed files with 14 additions and 30 deletions

View File

@ -38,6 +38,20 @@ enum dcerpc_transport_t {
NCACN_VNS_SPP, NCACN_AT_DSP, NCADG_AT_DDP, NCALRPC, NCACN_UNIX_STREAM,
NCADG_UNIX_DGRAM, NCACN_HTTP, NCADG_IPX, NCACN_SPX, NCACN_INTERNAL };
/** this describes a binding to a particular transport/pipe */
struct dcerpc_binding {
enum dcerpc_transport_t transport;
struct ndr_syntax_id object;
const char *host;
const char *target_hostname;
const char *target_principal;
const char *endpoint;
const char **options;
const char *localaddress;
uint32_t flags;
uint32_t assoc_group_id;
};
/* The following definitions come from ../librpc/rpc/dcerpc_error.c */
const char *dcerpc_errstr(TALLOC_CTX *mem_ctx, uint32_t fault_code);

View File

@ -30,21 +30,6 @@
#define SMB_RPC_INTERFACE_VERSION 1
/** this describes a binding to a particular transport/pipe */
struct dcerpc_binding {
enum dcerpc_transport_t transport;
struct ndr_syntax_id object;
const char *host;
const char *target_hostname;
const char *target_principal;
const char *endpoint;
const char **options;
const char *localaddress;
uint32_t flags;
uint32_t assoc_group_id;
};
/* dcerpc pipe flags */
#define DCERPC_DEBUG_PRINT_IN (1<<0)
#define DCERPC_DEBUG_PRINT_OUT (1<<1)

View File

@ -180,21 +180,6 @@ struct dcerpc_pipe {
/* specify binding interface */
#define DCERPC_LOCALADDRESS (1<<22)
/* this describes a binding to a particular transport/pipe */
struct dcerpc_binding {
enum dcerpc_transport_t transport;
struct ndr_syntax_id object;
const char *host;
const char *target_hostname;
const char *target_principal;
const char *endpoint;
const char **options;
const char *localaddress;
uint32_t flags;
uint32_t assoc_group_id;
};
struct dcerpc_pipe_connect {
struct dcerpc_pipe *pipe;
struct dcerpc_binding *binding;