syslog-ng source
serialization.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Balabit
3  * Copyright (c) 2016 Balazs Scheidler <balazs.scheidler@balabit.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 
26 #ifndef LOGMSG_SERIALIZATION_H
27 #define LOGMSG_SERIALIZATION_H
28 
29 #include "serialize.h"
30 #include "logmsg/logmsg.h"
31 #include "timeutils/unixtime.h"
32 
33 typedef struct _LogMessageSerializationState
34 {
35  guint8 version;
36  SerializeArchive *sa;
37  LogMessage *msg;
38  NVTable *nvtable;
39  guint8 nvtable_flags;
42  NVIndexEntry *updated_index;
43  const UnixTime *processed;
44  guint32 flags;
46 
47 #endif
guint32 NVHandle
Definition: nvtable.h:35
Definition: serialization.h:34
guint8 version
Definition: serialization.h:35
NVTable * nvtable
Definition: serialization.h:38
NVIndexEntry * updated_index
Definition: serialization.h:42
SerializeArchive * sa
Definition: serialization.h:36
guint8 nvtable_flags
Definition: serialization.h:39
NVHandle * updated_sdata_handles
Definition: serialization.h:41
LogMessage * msg
Definition: serialization.h:37
const UnixTime * processed
Definition: serialization.h:43
guint8 handle_changed
Definition: serialization.h:40
guint32 flags
Definition: serialization.h:44