diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-05 18:30:10 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-07 17:12:39 +0100 |
commit | ae049c49df88fcbcce490cd81361912e67775b12 (patch) | |
tree | cdbe230d15a26f4be777bef79dbf278e358b0335 /source4/libcli/wrepl/winsrepl.h | |
parent | acd3a2729e02d765e31166c3211c3f3fcc3c6252 (diff) | |
download | samba-ae049c49df88fcbcce490cd81361912e67775b12.tar.gz samba-ae049c49df88fcbcce490cd81361912e67775b12.tar.bz2 samba-ae049c49df88fcbcce490cd81361912e67775b12.zip |
s4:libcli/wrepl: rewrite the low level request handling to use tevent_queue and tstream_context
metze
Diffstat (limited to 'source4/libcli/wrepl/winsrepl.h')
-rw-r--r-- | source4/libcli/wrepl/winsrepl.h | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/source4/libcli/wrepl/winsrepl.h b/source4/libcli/wrepl/winsrepl.h index 047e5d21c8..bc35544ae6 100644 --- a/source4/libcli/wrepl/winsrepl.h +++ b/source4/libcli/wrepl/winsrepl.h @@ -24,37 +24,7 @@ #include "librpc/gen_ndr/winsrepl.h" struct wrepl_request; - -/* - main context structure for the wins replication client library -*/ -struct wrepl_socket { - struct socket_context *sock; - struct packet_context *packet; - - struct { - struct tevent_context *ctx; - struct tevent_fd *fde; - } event; - - /* a queue of replies waiting to be received */ - struct wrepl_request *recv_queue; - - /* the default timeout for requests, 0 means no timeout */ -#define WREPL_SOCKET_REQUEST_TIMEOUT (60) - uint32_t request_timeout; - - /* counter for request timeouts, after 2 timeouts the socket is marked as dead */ - uint32_t timeout_count; - - /* remember is the socket is dead */ - bool dead; - - /* remember if we need to free the wrepl_socket at the end of wrepl_socket_dead() */ - bool free_skipped; - - struct smb_iconv_convenience *iconv_convenience; -}; +struct wrepl_socket; struct wrepl_send_ctrl { bool send_only; @@ -135,6 +105,6 @@ struct wrepl_pull_names { } out; }; -struct resolve_context; +struct tstream_context; #include "libcli/wrepl/winsrepl_proto.h" |