along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "libcli/netlogon.h"
+#include "../libcli/netlogon.h"
/*
a datagram name request
*/
struct nbt_dgram_socket {
struct socket_context *sock;
- struct event_context *event_ctx;
+ struct tevent_context *event_ctx;
struct smb_iconv_convenience *iconv_convenience;
/* the fd event */
- struct fd_event *fde;
+ struct tevent_fd *fde;
/* a queue of outgoing requests */
struct nbt_dgram_request *send_queue;
struct {
void (*handler)(struct nbt_dgram_socket *, struct nbt_dgram_packet *,
struct socket_address *src);
- void *private;
+ void *private_data;
} incoming;
};
typedef void (*dgram_mailslot_handler_t)(struct dgram_mailslot_handler *,
struct nbt_dgram_packet *,
- const char *mailslot_name,
struct socket_address *src);
struct dgram_mailslot_handler {
const char *mailslot_name;
dgram_mailslot_handler_t handler;
- void *private;
+ void *private_data;
};
void (*handler)(struct nbt_dgram_socket *,
struct nbt_dgram_packet *,
struct socket_address *),
- void *private);
+ void *private_data);
struct nbt_dgram_socket *nbt_dgram_socket_init(TALLOC_CTX *mem_ctx,
- struct event_context *event_ctx,
+ struct tevent_context *event_ctx,
struct smb_iconv_convenience *);
const char *dgram_mailslot_name(struct nbt_dgram_packet *packet);
struct dgram_mailslot_handler *dgram_mailslot_listen(struct nbt_dgram_socket *dgmsock,
const char *mailslot_name,
dgram_mailslot_handler_t handler,
- void *private);
+ void *private_data);
struct dgram_mailslot_handler *dgram_mailslot_temp(struct nbt_dgram_socket *dgmsock,
const char *mailslot_name,
dgram_mailslot_handler_t handler,
- void *private);
+ void *private_data);
DATA_BLOB dgram_mailslot_data(struct nbt_dgram_packet *dgram);