diff options
Diffstat (limited to 'source4/lib/stream')
-rw-r--r-- | source4/lib/stream/packet.c | 10 | ||||
-rw-r--r-- | source4/lib/stream/packet.h | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/source4/lib/stream/packet.c b/source4/lib/stream/packet.c index 72a7e6485c..7882059faf 100644 --- a/source4/lib/stream/packet.c +++ b/source4/lib/stream/packet.c @@ -35,10 +35,10 @@ struct packet_context { uint32_t num_read; uint32_t initial_read; struct socket_context *sock; - struct event_context *ev; + struct tevent_context *ev; size_t packet_size; void *private; - struct fd_event *fde; + struct tevent_fd *fde; bool serialise; int processing; bool recv_disable; @@ -136,7 +136,7 @@ _PUBLIC_ void packet_set_socket(struct packet_context *pc, struct socket_context time on a socket. This can matter for code that relies on not getting more than one packet per event */ -_PUBLIC_ void packet_set_event_context(struct packet_context *pc, struct event_context *ev) +_PUBLIC_ void packet_set_event_context(struct packet_context *pc, struct tevent_context *ev) { pc->ev = ev; } @@ -144,7 +144,7 @@ _PUBLIC_ void packet_set_event_context(struct packet_context *pc, struct event_c /* tell the packet layer the fde for the socket */ -_PUBLIC_ void packet_set_fde(struct packet_context *pc, struct fd_event *fde) +_PUBLIC_ void packet_set_fde(struct packet_context *pc, struct tevent_fd *fde) { pc->fde = fde; } @@ -209,7 +209,7 @@ static void packet_eof(struct packet_context *pc) /* used to put packets on event boundaries */ -static void packet_next_event(struct event_context *ev, struct timed_event *te, +static void packet_next_event(struct tevent_context *ev, struct tevent_timer *te, struct timeval t, void *private) { struct packet_context *pc = talloc_get_type(private, struct packet_context); diff --git a/source4/lib/stream/packet.h b/source4/lib/stream/packet.h index f7b10cd878..c9bd9d4767 100644 --- a/source4/lib/stream/packet.h +++ b/source4/lib/stream/packet.h @@ -21,8 +21,8 @@ */ struct packet_context; -struct event_context; -struct fd_event; +struct tevent_context; +struct tevent_fd; typedef NTSTATUS (*packet_full_request_fn_t)(void *private, DATA_BLOB blob, size_t *packet_size); @@ -40,8 +40,8 @@ void packet_set_error_handler(struct packet_context *pc, packet_error_handler_fn void packet_set_private(struct packet_context *pc, void *private); void packet_set_full_request(struct packet_context *pc, packet_full_request_fn_t callback); void packet_set_socket(struct packet_context *pc, struct socket_context *sock); -void packet_set_event_context(struct packet_context *pc, struct event_context *ev); -void packet_set_fde(struct packet_context *pc, struct fd_event *fde); +void packet_set_event_context(struct packet_context *pc, struct tevent_context *ev); +void packet_set_fde(struct packet_context *pc, struct tevent_fd *fde); void packet_set_serialise(struct packet_context *pc); void packet_set_initial_read(struct packet_context *pc, uint32_t initial_read); void packet_set_nofree(struct packet_context *pc); |