syslog-ng source
persistable-state-header.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2002-2013 Balabit
3
* Copyright (c) 1998-2013 Balázs Scheidler
4
* Copyright (c) 2012-2013 Viktor Juhasz
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 _PERSISTABLE_STATE_HEADER_H
28
#define _PERSISTABLE_STATE_HEADER_H
29
30
typedef
struct
_PersistableStateHeader
31
{
32
guint8
version
;
33
/* this indicates that the members in the struct are stored in
34
* big-endian byte order. if the byte ordering of the struct doesn't
35
* match the current CPU byte ordering, then the members are
36
* byte-swapped when the state is loaded.
37
*
38
* Every State structure must have it's own byte-order swapping function
39
*/
40
guint8
big_endian
: 1;
41
}
PersistableStateHeader
;
42
43
#endif
PersistableStateHeader
Definition:
persistable-state-header.h:31
PersistableStateHeader::version
guint8 version
Definition:
persistable-state-header.h:32
PersistableStateHeader::big_endian
guint8 big_endian
Definition:
persistable-state-header.h:40
lib
persistable-state-header.h
Generated by
1.9.1