source: vendor/3.6.23/source3/lib/eventlog/proto.h

Last change on this file was 740, checked in by Silvan Scherrer, 13 years ago

Samba Server: update vendor to 3.6.0

File size: 2.6 KB
Line 
1/*
2 * Unix SMB/CIFS implementation.
3 * Eventlog utility routines
4 *
5 * Copyright (C) Marcin Krzysztof Porwit 2005
6 * Copyright (C) Brian Moran 2005
7 * Copyright (C) Gerald (Jerry) Carter 2005
8 * Copyright (C) Guenther Deschner 2009
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, see <http://www.gnu.org/licenses/>.
22 */
23
24#ifndef _LIB_EVENTLOG_PROTO_H_
25#define _LIB_EVENTLOG_PROTO_H_
26
27/* The following definitions come from lib/eventlog/eventlog.c */
28
29TDB_CONTEXT *elog_init_tdb( char *tdbfilename );
30char *elog_tdbname(TALLOC_CTX *ctx, const char *name );
31int elog_tdb_size( TDB_CONTEXT * tdb, int *MaxSize, int *Retention );
32bool prune_eventlog( TDB_CONTEXT * tdb );
33ELOG_TDB *elog_open_tdb( const char *logname, bool force_clear, bool read_only );
34int elog_close_tdb( ELOG_TDB *etdb, bool force_close );
35bool parse_logentry( TALLOC_CTX *mem_ctx, char *line, struct eventlog_Record_tdb *entry, bool * eor );
36size_t fixup_eventlog_record_tdb(struct eventlog_Record_tdb *r);
37struct eventlog_Record_tdb *evlog_pull_record_tdb(TALLOC_CTX *mem_ctx,
38 TDB_CONTEXT *tdb,
39 uint32_t record_number);
40NTSTATUS evlog_push_record_tdb(TALLOC_CTX *mem_ctx,
41 TDB_CONTEXT *tdb,
42 struct eventlog_Record_tdb *r,
43 uint32_t *record_number);
44NTSTATUS evlog_push_record(TALLOC_CTX *mem_ctx,
45 TDB_CONTEXT *tdb,
46 struct EVENTLOGRECORD *r,
47 uint32_t *record_number);
48struct EVENTLOGRECORD *evlog_pull_record(TALLOC_CTX *mem_ctx,
49 TDB_CONTEXT *tdb,
50 uint32_t record_number);
51NTSTATUS evlog_evt_entry_to_tdb_entry(TALLOC_CTX *mem_ctx,
52 const struct EVENTLOGRECORD *e,
53 struct eventlog_Record_tdb *t);
54NTSTATUS evlog_tdb_entry_to_evt_entry(TALLOC_CTX *mem_ctx,
55 const struct eventlog_Record_tdb *t,
56 struct EVENTLOGRECORD *e);
57NTSTATUS evlog_convert_tdb_to_evt(TALLOC_CTX *mem_ctx,
58 ELOG_TDB *etdb,
59 DATA_BLOB *blob_p,
60 uint32_t *num_records_p);
61
62#endif /* _LIB_EVENTLOG_PROTO_H_ */
Note: See TracBrowser for help on using the repository browser.