From 113e21f0a57af49d61cfb0dd1afd38b4a8fd5128 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 31 Jan 2007 13:47:37 +0000 Subject: r21084: Make the Samba4 files compile in Samba3, not activated yet. Volker (This used to be commit c24854433a28cc066072a7107e29aa7fe2bec3c8) --- source3/smbd/notify.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'source3/smbd/notify.c') diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 4c82b9fca8..97192d6e63 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -548,3 +548,30 @@ BOOL init_change_notify(void) return True; } + +struct sys_notify_context *sys_notify_context_create(struct share_params *scfg, + TALLOC_CTX *mem_ctx, + struct event_context *ev) +{ + struct sys_notify_context *ctx; + + if (!(ctx = TALLOC_P(mem_ctx, struct sys_notify_context))) { + DEBUG(0, ("talloc failed\n")); + return NULL; + } + + ctx->ev = ev; + ctx->private_data = NULL; + return ctx; +} + +NTSTATUS sys_notify_watch(struct sys_notify_context *ctx, + struct notify_entry *e, + void (*callback)(struct sys_notify_context *ctx, + void *private_data, + struct notify_event *ev), + void *private_data, void *handle) +{ + return inotify_watch(ctx, e, callback, private_data, handle); +} + -- cgit