lib-addns: ensure that allocated buffer are pre set to 0 (bug #9259)
[Samba.git] / source3 / include / eventlog.h
blob16affe3313867902610220f4df7730e386077b1d
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 /* Defines for TDB keys */
21 #define EVT_OLDEST_ENTRY "INFO/oldest_entry"
22 #define EVT_NEXT_RECORD "INFO/next_record"
23 #define EVT_VERSION "INFO/version"
24 #define EVT_MAXSIZE "INFO/maxsize"
25 #define EVT_RETENTION "INFO/retention"
27 #define ELOG_APPL "Application"
28 #define ELOG_SYS "System"
29 #define ELOG_SEC "Security"
31 typedef struct elog_tdb {
32 struct elog_tdb *prev, *next;
33 char *name;
34 TDB_CONTEXT *tdb;
35 int ref_count;
36 } ELOG_TDB;
38 #define ELOG_TDB_CTX(x) ((x)->tdb)
41 #define EVENTLOG_DATABASE_VERSION_V1 1