mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
messaging3: Add messaging_dgm_register_tevent_context
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
dca572ff1c
commit
a6e49f9cda
@ -99,6 +99,9 @@ NTSTATUS messaging_dgm_init(struct messaging_context *msg_ctx,
|
||||
struct messaging_backend **presult);
|
||||
NTSTATUS messaging_dgm_cleanup(struct messaging_context *msg_ctx, pid_t pid);
|
||||
NTSTATUS messaging_dgm_wipe(struct messaging_context *msg_ctx);
|
||||
void *messaging_dgm_register_tevent_context(TALLOC_CTX *mem_ctx,
|
||||
struct messaging_context *msg_ctx,
|
||||
struct tevent_context *ev);
|
||||
|
||||
NTSTATUS messaging_ctdbd_init(struct messaging_context *msg_ctx,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
|
@ -473,3 +473,12 @@ NTSTATUS messaging_dgm_wipe(struct messaging_context *msg_ctx)
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
void *messaging_dgm_register_tevent_context(TALLOC_CTX *mem_ctx,
|
||||
struct messaging_context *msg_ctx,
|
||||
struct tevent_context *ev)
|
||||
{
|
||||
struct messaging_dgm_context *ctx = talloc_get_type_abort(
|
||||
msg_ctx->local->private_data, struct messaging_dgm_context);
|
||||
return poll_funcs_tevent_register(mem_ctx, ctx->msg_callbacks, ev);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user