1 | /*
|
---|
2 | * Unix SMB/CIFS implementation.
|
---|
3 | * RPC Pipe client / server routines
|
---|
4 | * Copyright (C) Marcin Krzysztof Porwit 2005.
|
---|
5 | *
|
---|
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.
|
---|
10 | *
|
---|
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.
|
---|
15 | *
|
---|
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/>.
|
---|
18 | */
|
---|
19 |
|
---|
20 | #include <tdb.h>
|
---|
21 |
|
---|
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"
|
---|
28 |
|
---|
29 | #define ELOG_APPL "Application"
|
---|
30 | #define ELOG_SYS "System"
|
---|
31 | #define ELOG_SEC "Security"
|
---|
32 |
|
---|
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;
|
---|
39 |
|
---|
40 | #define ELOG_TDB_CTX(x) ((x)->tdb)
|
---|
41 |
|
---|
42 | #define EVENTLOG_DATABASE_VERSION_V1 1
|
---|
43 |
|
---|
44 | #include "../librpc/gen_ndr/ndr_eventlog.h"
|
---|
45 | #include "lib/eventlog/proto.h"
|
---|