mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
messaging: Make messaging_dgm_register_tevent_context return a tevent_fd
Signed-off-by: Volker Lendecke <vl@samba.org> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
fdc52abbf4
commit
7099ba8770
@ -1359,8 +1359,8 @@ int messaging_dgm_wipe(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void *messaging_dgm_register_tevent_context(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev)
|
||||
struct tevent_fd *messaging_dgm_register_tevent_context(
|
||||
TALLOC_CTX *mem_ctx, struct tevent_context *ev)
|
||||
{
|
||||
struct messaging_dgm_context *ctx = global_dgm_context;
|
||||
|
||||
|
@ -42,7 +42,7 @@ int messaging_dgm_send(pid_t pid,
|
||||
const int *fds, size_t num_fds);
|
||||
int messaging_dgm_cleanup(pid_t pid);
|
||||
int messaging_dgm_wipe(void);
|
||||
void *messaging_dgm_register_tevent_context(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev);
|
||||
struct tevent_fd *messaging_dgm_register_tevent_context(
|
||||
TALLOC_CTX *mem_ctx, struct tevent_context *ev);
|
||||
|
||||
#endif
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
struct msg_dgm_ref {
|
||||
struct msg_dgm_ref *prev, *next;
|
||||
void *tevent_handle;
|
||||
struct tevent_fd *tevent_handle;
|
||||
void (*recv_cb)(struct tevent_context *ev,
|
||||
const uint8_t *msg, size_t msg_len,
|
||||
int *fds, size_t num_fds, void *private_data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user