*/
struct notify_context *notify_init(TALLOC_CTX *mem_ctx,
struct messaging_context *messaging_ctx,
- struct event_context *ev,
- connection_struct *conn)
+ struct event_context *ev)
{
struct notify_context *notify;
- if (!lp_change_notify(conn->params)) {
- return NULL;
- }
-
notify = talloc(mem_ctx, struct notify_context);
if (notify == NULL) {
return NULL;
struct notify_context *notify_init(TALLOC_CTX *mem_ctx,
struct messaging_context *messaging_ctx,
- struct event_context *ev,
- connection_struct *conn);
+ struct event_context *ev);
bool notify_internal_parent_init(TALLOC_CTX *mem_ctx);
NTSTATUS notify_add(struct notify_context *notify, connection_struct *conn,
struct notify_entry *e0,
/* Any error exit after here needs to call the disconnect hook. */
on_err_call_dis_hook = true;
- if ((!conn->printer) && (!conn->ipc)) {
+ if ((!conn->printer) && (!conn->ipc) &&
+ lp_change_notify(conn->params)) {
conn->notify_ctx = notify_init(conn,
sconn->msg_ctx,
- sconn->ev_ctx,
- conn);
+ sconn->ev_ctx);
}
/*