mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:libcli/wrepl: make struct wrepl_request private to winsrepl.c
metze
This commit is contained in:
parent
2450fc1c27
commit
f1e28a0b41
@ -33,6 +33,34 @@
|
|||||||
#include "param/param.h"
|
#include "param/param.h"
|
||||||
#include "lib/util/tevent_ntstatus.h"
|
#include "lib/util/tevent_ntstatus.h"
|
||||||
|
|
||||||
|
enum wrepl_request_internal_state {
|
||||||
|
WREPL_REQUEST_INIT = 0,
|
||||||
|
WREPL_REQUEST_RECV = 1,
|
||||||
|
WREPL_REQUEST_DONE = 2,
|
||||||
|
WREPL_REQUEST_ERROR = 3
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
a WINS replication request
|
||||||
|
*/
|
||||||
|
struct wrepl_request {
|
||||||
|
struct wrepl_request *next, *prev;
|
||||||
|
struct wrepl_socket *wrepl_socket;
|
||||||
|
|
||||||
|
enum wrepl_request_internal_state state;
|
||||||
|
bool trigger;
|
||||||
|
NTSTATUS status;
|
||||||
|
|
||||||
|
struct tevent_timer *te;
|
||||||
|
|
||||||
|
struct wrepl_packet *packet;
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void (*fn)(struct wrepl_request *);
|
||||||
|
void *private_data;
|
||||||
|
} async;
|
||||||
|
};
|
||||||
|
|
||||||
static struct wrepl_request *wrepl_request_finished(struct wrepl_request *req, NTSTATUS status);
|
static struct wrepl_request *wrepl_request_finished(struct wrepl_request *req, NTSTATUS status);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
#include "librpc/gen_ndr/nbt.h"
|
#include "librpc/gen_ndr/nbt.h"
|
||||||
#include "librpc/gen_ndr/winsrepl.h"
|
#include "librpc/gen_ndr/winsrepl.h"
|
||||||
|
|
||||||
|
struct wrepl_request;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
main context structure for the wins replication client library
|
main context structure for the wins replication client library
|
||||||
*/
|
*/
|
||||||
@ -59,35 +61,6 @@ struct wrepl_send_ctrl {
|
|||||||
bool disconnect_after_send;
|
bool disconnect_after_send;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum wrepl_request_internal_state {
|
|
||||||
WREPL_REQUEST_INIT = 0,
|
|
||||||
WREPL_REQUEST_RECV = 1,
|
|
||||||
WREPL_REQUEST_DONE = 2,
|
|
||||||
WREPL_REQUEST_ERROR = 3
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
a WINS replication request
|
|
||||||
*/
|
|
||||||
struct wrepl_request {
|
|
||||||
struct wrepl_request *next, *prev;
|
|
||||||
struct wrepl_socket *wrepl_socket;
|
|
||||||
|
|
||||||
enum wrepl_request_internal_state state;
|
|
||||||
bool trigger;
|
|
||||||
NTSTATUS status;
|
|
||||||
|
|
||||||
struct tevent_timer *te;
|
|
||||||
|
|
||||||
struct wrepl_packet *packet;
|
|
||||||
|
|
||||||
struct {
|
|
||||||
void (*fn)(struct wrepl_request *);
|
|
||||||
void *private_data;
|
|
||||||
} async;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
setup an association
|
setup an association
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user