s3: Fix vfs_zfsacl to compile.
[Samba/gebeck_regimport.git] / source3 / lib / eventlog / eventlog.h
blob694732d184aa6abbba4af46c04ebaa9b2040fb9b
1 /*
2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Marcin Krzysztof Porwit 2005.
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 #include "tdb_compat.h"
22 /* Defines for TDB keys */
23 #define EVT_OLDEST_ENTRY "INFO/oldest_entry"
24 #define EVT_NEXT_RECORD "INFO/next_record"
25 #define EVT_VERSION "INFO/version"
26 #define EVT_MAXSIZE "INFO/maxsize"
27 #define EVT_RETENTION "INFO/retention"
29 #define ELOG_APPL "Application"
30 #define ELOG_SYS "System"
31 #define ELOG_SEC "Security"
33 typedef struct elog_tdb {
34 struct elog_tdb *prev, *next;
35 char *name;
36 TDB_CONTEXT *tdb;
37 int ref_count;
38 } ELOG_TDB;
40 #define ELOG_TDB_CTX(x) ((x)->tdb)
42 #define EVENTLOG_DATABASE_VERSION_V1 1
44 #include "../librpc/gen_ndr/ndr_eventlog.h"
45 #include "lib/eventlog/proto.h"