2 Unix SMB/CIFS implementation.
3 Watch dbwrap record changes
4 Copyright (C) Volker Lendecke 2012
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 3 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, see <http://www.gnu.org/licenses/>.
20 #ifndef __DBWRAP_WATCH_H__
21 #define __DBWRAP_WATCH_H__
24 #include "dbwrap/dbwrap.h"
27 struct db_context
*db_open_watched(TALLOC_CTX
*mem_ctx
,
28 struct db_context
**backend
,
29 struct messaging_context
*msg
);
30 uint64_t dbwrap_watched_watch_add_instance(struct db_record
*rec
);
31 void dbwrap_watched_watch_remove_instance(struct db_record
*rec
, uint64_t instance
);
32 void dbwrap_watched_watch_skip_alerting(struct db_record
*rec
);
33 void dbwrap_watched_watch_reset_alerting(struct db_record
*rec
);
34 void dbwrap_watched_watch_force_alerting(struct db_record
*rec
);
35 struct tevent_req
*dbwrap_watched_watch_send(TALLOC_CTX
*mem_ctx
,
36 struct tevent_context
*ev
,
37 struct db_record
*rec
,
38 uint64_t resume_instance
,
39 struct server_id blocker
);
40 NTSTATUS
dbwrap_watched_watch_recv(struct tevent_req
*req
,
41 uint64_t *pkeep_instance
,
43 struct server_id
*blocker
);
45 #endif /* __DBWRAP_WATCH_H__ */