2 Unix SMB/CIFS implementation.
4 Copyright (C) Andrew Tridgell 2006
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include "librpc/gen_ndr/notify.h"
22 #include "param/share.h"
24 struct sys_notify_context
;
26 typedef void (*sys_notify_callback_t
)(struct sys_notify_context
*,
27 void *, struct notify_event
*ev
);
29 typedef NTSTATUS (*notify_watch_t
)(struct sys_notify_context
*ctx
,
30 struct notify_entry
*e
,
31 sys_notify_callback_t callback
,
35 struct sys_notify_context
{
36 struct event_context
*ev
;
37 void *private_data
; /* for use of backend */
39 notify_watch_t notify_watch
;
42 struct sys_notify_backend
{
44 notify_watch_t notify_watch
;
47 NTSTATUS
sys_notify_register(struct sys_notify_backend
*backend
);
48 struct sys_notify_context
*sys_notify_context_create(struct share_config
*scfg
,
50 struct event_context
*ev
);
51 NTSTATUS
sys_notify_watch(struct sys_notify_context
*ctx
, struct notify_entry
*e
,
52 sys_notify_callback_t callback
, void *private_data
,
54 NTSTATUS
sys_notify_init(void);