summaryrefslogtreecommitdiff
path: root/source3/include/messages.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-07-17 09:44:41 +0000
committerJeremy Allison <jra@samba.org>2014-08-11 23:57:12 +0200
commit371e99959cf8c02b3a4e7b6352ed83f1d8b9200d (patch)
treedd1f4e302592bb8adbe2a475302a58ffb1824a36 /source3/include/messages.h
parent42e1556bd92092caf997a87964d65d4ce6d0cc39 (diff)
downloadsamba-371e99959cf8c02b3a4e7b6352ed83f1d8b9200d.tar.gz
messaging_dgm: Receive through a cb function
This avoids calling messaging_dispatch_rec directly from messaging_dgm.c Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/include/messages.h')
-rw-r--r--source3/include/messages.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/include/messages.h b/source3/include/messages.h
index b718dd77b20..32c4097a6bf 100644
--- a/source3/include/messages.h
+++ b/source3/include/messages.h
@@ -75,7 +75,14 @@ struct messaging_backend {
int messaging_dgm_init(struct messaging_context *msg_ctx,
TALLOC_CTX *mem_ctx,
- struct messaging_backend **presult);
+ struct messaging_backend **presult,
+ void (*recv_cb)(int msg_type,
+ struct server_id src,
+ struct server_id dst,
+ const uint8_t *msg,
+ size_t msg_len,
+ void *private_data),
+ void *recv_cb_private_data);
int messaging_dgm_cleanup(struct messaging_context *msg_ctx, pid_t pid);
int messaging_dgm_wipe(struct messaging_context *msg_ctx);
void *messaging_dgm_register_tevent_context(TALLOC_CTX *mem_ctx,