Changeset 745 for trunk/server/source4/libcli/wrepl/winsrepl.h
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source4/libcli/wrepl/winsrepl.h
r414 r745 5 5 6 6 Copyright (C) Andrew Tridgell 2005 7 Copyright (C) Stefan Metzmacher 2005-2010 7 8 8 9 This program is free software; you can redistribute it and/or modify … … 23 24 #include "librpc/gen_ndr/winsrepl.h" 24 25 25 /* 26 main context structure for the wins replication client library 27 */ 28 struct wrepl_socket { 29 struct socket_context *sock; 30 struct packet_context *packet; 31 32 struct { 33 struct tevent_context *ctx; 34 struct tevent_fd *fde; 35 } event; 36 37 /* a queue of replies waiting to be received */ 38 struct wrepl_request *recv_queue; 39 40 /* the default timeout for requests, 0 means no timeout */ 41 #define WREPL_SOCKET_REQUEST_TIMEOUT (60) 42 uint32_t request_timeout; 43 44 /* counter for request timeouts, after 2 timeouts the socket is marked as dead */ 45 uint32_t timeout_count; 46 47 /* remember is the socket is dead */ 48 bool dead; 49 50 /* remember if we need to free the wrepl_socket at the end of wrepl_socket_dead() */ 51 bool free_skipped; 52 53 struct smb_iconv_convenience *iconv_convenience; 54 }; 26 struct wrepl_request; 27 struct wrepl_socket; 55 28 56 29 struct wrepl_send_ctrl { … … 58 31 bool disconnect_after_send; 59 32 }; 60 61 enum wrepl_request_state {62 WREPL_REQUEST_INIT = 0,63 WREPL_REQUEST_RECV = 1,64 WREPL_REQUEST_DONE = 2,65 WREPL_REQUEST_ERROR = 366 };67 68 /*69 a WINS replication request70 */71 struct wrepl_request {72 struct wrepl_request *next, *prev;73 struct wrepl_socket *wrepl_socket;74 75 enum wrepl_request_state state;76 bool trigger;77 NTSTATUS status;78 79 struct tevent_timer *te;80 81 struct wrepl_packet *packet;82 83 struct {84 void (*fn)(struct wrepl_request *);85 void *private_data;86 } async;87 };88 89 33 90 34 /* … … 130 74 (is_static ? WREPL_FLAGS_IS_STATIC : 0)) 131 75 76 struct wrepl_address { 77 const char *owner; 78 const char *address; 79 }; 80 81 struct wrepl_name { 82 struct nbt_name name; 83 enum wrepl_name_type type; 84 enum wrepl_name_state state; 85 enum wrepl_name_node node; 86 bool is_static; 87 uint32_t raw_flags; 88 uint64_t version_id; 89 const char *owner; 90 uint32_t num_addresses; 91 struct wrepl_address *addresses; 92 }; 93 132 94 /* 133 95 a full pull replication … … 140 102 struct { 141 103 uint32_t num_names; 142 struct wrepl_name { 143 struct nbt_name name; 144 enum wrepl_name_type type; 145 enum wrepl_name_state state; 146 enum wrepl_name_node node; 147 bool is_static; 148 uint32_t raw_flags; 149 uint64_t version_id; 150 const char *owner; 151 uint32_t num_addresses; 152 struct wrepl_address { 153 const char *owner; 154 const char *address; 155 } *addresses; 156 } *names; 104 struct wrepl_name *names; 157 105 } out; 158 106 }; 159 107 160 struct resolve_context;108 struct tstream_context; 161 109 162 110 #include "libcli/wrepl/winsrepl_proto.h"
Note:
See TracChangeset
for help on using the changeset viewer.