syslog-ng source
nvtable-serialize.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2002-2015 Balabit
3
* Copyright (c) 1998-2012 Balázs Scheidler
4
* Copyright (c) 2012-2015 Viktor Juhasz <viktor.juhasz@balabit.com>
5
* Copyright (c) 2012-2013 Viktor Tusa
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
*
21
* As an additional exemption you are allowed to compile & link against the
22
* OpenSSL libraries as published by the OpenSSL project. See the file
23
* COPYING for details.
24
*
25
*/
26
27
#ifndef _NVTABLE_SERIALIZE_H
28
#define _NVTABLE_SERIALIZE_H
29
30
#include "
logmsg/nvtable.h
"
31
#include "
logmsg/serialization.h
"
32
33
#define NV_TABLE_MAGIC_V2 "NVT2"
34
#define NVT_SF_BE 0x1
35
#define NVT_SUPPORTS_UNSET 0x2
36
37
#define NVENTRY_FLAGS_DEFINED_IN_LEGACY_FORMATS 0x3
38
39
NVTable *
nv_table_deserialize
(
LogMessageSerializationState
*
state
);
40
gboolean
nv_table_serialize
(
LogMessageSerializationState
*
state
, NVTable *
self
);
41
gboolean
nv_table_fixup_handles
(
LogMessageSerializationState
*
state
);
42
43
#endif
nv_table_serialize
gboolean nv_table_serialize(LogMessageSerializationState *state, NVTable *self)
Definition:
nvtable-serialize.c:240
nv_table_fixup_handles
gboolean nv_table_fixup_handles(LogMessageSerializationState *state)
nv_table_deserialize
NVTable * nv_table_deserialize(LogMessageSerializationState *state)
Definition:
nvtable-serialize.c:170
nvtable.h
serialization.h
LogMessageSerializationState
Definition:
serialization.h:34
state
struct @95 state
lib
logmsg
nvtable-serialize.h
Generated by
1.9.1