summaryrefslogtreecommitdiffstats
path: root/source3/lib/messages_dgm.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-07-27 12:29:26 +0200
committerJeremy Allison <jra@samba.org>2014-08-11 23:57:13 +0200
commit121d3ddce66053c8e00983d95f2689a64baf06c8 (patch)
tree99f61e3624bfb68a4bbd9dc7f140e26e7ef5f8c4 /source3/lib/messages_dgm.h
parentbff27ee7837861d8c3fd8fef7ed7411944be575b (diff)
downloadsamba-121d3ddce66053c8e00983d95f2689a64baf06c8.tar.gz
samba-121d3ddce66053c8e00983d95f2689a64baf06c8.tar.xz
samba-121d3ddce66053c8e00983d95f2689a64baf06c8.zip
messaging3: Move messaging_hdr handling to messages.c.
This makes messages_dgm a simple byte-transport across processes that knows almost nothing about server_id etc. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/messages_dgm.h')
-rw-r--r--source3/lib/messages_dgm.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/lib/messages_dgm.h b/source3/lib/messages_dgm.h
index 0172d7bad6..b403117848 100644
--- a/source3/lib/messages_dgm.h
+++ b/source3/lib/messages_dgm.h
@@ -26,17 +26,13 @@ int messaging_dgm_init(TALLOC_CTX *mem_ctx,
struct server_id pid,
const char *cache_dir,
uid_t dir_owner,
- void (*recv_cb)(int msg_type,
- struct server_id src,
- struct server_id dst,
- const uint8_t *msg,
+ void (*recv_cb)(const uint8_t *msg,
size_t msg_len,
void *private_data),
void *recv_cb_private_data,
struct messaging_dgm_context **pctx);
-int messaging_dgm_send(struct messaging_dgm_context *ctx,
- struct server_id src, struct server_id pid,
- int msg_type, const struct iovec *iov, int iovlen);
+int messaging_dgm_send(struct messaging_dgm_context *ctx, pid_t pid,
+ const struct iovec *iov, int iovlen);
int messaging_dgm_cleanup(struct messaging_dgm_context *ctx, pid_t pid);
int messaging_dgm_wipe(struct messaging_dgm_context *ctx);
void *messaging_dgm_register_tevent_context(TALLOC_CTX *mem_ctx,