talloc_free(). We need the messaging_ctx to allow for notifications
via internal messages
*/
-struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server,
+struct notify_context *notify_init(TALLOC_CTX *mem_ctx,
struct messaging_context *messaging_ctx,
struct event_context *ev,
connection_struct *conn)
return NULL;
}
- notify->server = server;
+ notify->server = messaging_server_id(messaging_ctx);
notify->messaging_ctx = messaging_ctx;
notify->list = NULL;
notify->array = NULL;
/* The following definitions come from smbd/notify_internal.c */
-struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server,
+struct notify_context *notify_init(TALLOC_CTX *mem_ctx,
struct messaging_context *messaging_ctx,
struct event_context *ev,
connection_struct *conn);
if ((!conn->printer) && (!conn->ipc)) {
conn->notify_ctx = notify_init(conn,
- messaging_server_id(sconn->msg_ctx),
sconn->msg_ctx,
sconn->ev_ctx,
conn);