1
0
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:
Volker Lendecke 2016-09-30 06:42:40 -07:00 committed by Jeremy Allison
parent fdc52abbf4
commit 7099ba8770
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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

View File

@ -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);