e.subdir_filter = filter;
}
- status = notify_add(fsp->conn->notify_ctx, &e, notify_callback, fsp);
+ status = notify_add(fsp->conn->notify_ctx, fsp->conn, &e,
+ notify_callback, fsp);
TALLOC_FREE(fullpath);
return status;
add a notify watch. This is called when a notify is first setup on a open
directory handle.
*/
-NTSTATUS notify_add(struct notify_context *notify, struct notify_entry *e0,
+NTSTATUS notify_add(struct notify_context *notify, connection_struct *conn,
+ struct notify_entry *e0,
void (*callback)(void *, const struct notify_event *),
void *private_data)
{
struct event_context *ev,
connection_struct *conn);
bool notify_internal_parent_init(TALLOC_CTX *mem_ctx);
-NTSTATUS notify_add(struct notify_context *notify, struct notify_entry *e0,
+NTSTATUS notify_add(struct notify_context *notify, connection_struct *conn,
+ struct notify_entry *e0,
void (*callback)(void *, const struct notify_event *),
void *private_data);
NTSTATUS notify_remove(struct notify_context *notify, void *private_data);