void *private_data;
};
-int messaging_dgm_init(struct messaging_context *msg_ctx,
- TALLOC_CTX *mem_ctx,
+int messaging_dgm_init(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct server_id pid,
struct messaging_backend **presult,
ctx->event_ctx = ev;
ctx->have_context = &have_context;
- ret = messaging_dgm_init(ctx, ctx, ctx->event_ctx, ctx->id,
+ ret = messaging_dgm_init(ctx, ctx->event_ctx, ctx->id,
&ctx->local, messaging_recv_cb, ctx);
if (ret != 0) {
msg_ctx->id = procid_self();
- ret = messaging_dgm_init(msg_ctx, msg_ctx, msg_ctx->event_ctx,
+ ret = messaging_dgm_init(msg_ctx, msg_ctx->event_ctx,
msg_ctx->id, &msg_ctx->local,
messaging_recv_cb, msg_ctx);
if (ret != 0) {
#include "librpc/gen_ndr/messaging.h"
struct messaging_dgm_context {
- struct messaging_context *msg_ctx;
struct server_id pid;
struct poll_funcs *msg_callbacks;
void *tevent_handle;
return ret;
}
-int messaging_dgm_init(struct messaging_context *msg_ctx,
- TALLOC_CTX *mem_ctx,
+int messaging_dgm_init(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct server_id pid,
struct messaging_backend **presult,
result->private_data = ctx;
result->send_fn = messaging_dgm_send;
- ctx->msg_ctx = msg_ctx;
ctx->pid = pid;
ctx->recv_cb = recv_cb;