build:dist: call build-manpages-nogit for make dist and package generated files
[Samba/gebeck_regimport.git] / source3 / lib / dbwrap / dbwrap_watch.h
blob3362e45aba13fccea2b74342d540e3ca108baf16
1 /*
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__
23 #include <tevent.h>
24 #include "dbwrap/dbwrap.h"
25 #include "messages.h"
27 void dbwrap_watch_db(struct db_context *db, struct messaging_context *msg);
29 struct tevent_req *dbwrap_record_watch_send(TALLOC_CTX *mem_ctx,
30 struct tevent_context *ev,
31 struct db_record *rec,
32 struct messaging_context *msg);
33 NTSTATUS dbwrap_record_watch_recv(struct tevent_req *req,
34 TALLOC_CTX *mem_ctx,
35 struct db_record **prec);
37 void dbwrap_watchers_traverse_read(
38 int (*fn)(const uint8_t *db_id, size_t db_id_len, const TDB_DATA key,
39 const struct server_id *watchers, size_t num_watchers,
40 void *private_data),
41 void *private_data);
43 void dbwrap_watchers_wakeall(struct messaging_context *msg);
46 #endif /* __DBWRAP_WATCH_H__ */