journal-def.h revision b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f
#pragma once
/***
This file is part of systemd.
Copyright 2011 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "sd-id128.h"
#include "macro.h"
#include "sparse-endian.h"
/*
* If you change this file you probably should also change its documentation:
*
*
*/
typedef struct ObjectHeader ObjectHeader;
typedef struct DataObject DataObject;
typedef struct FieldObject FieldObject;
typedef struct EntryObject EntryObject;
typedef struct HashTableObject HashTableObject;
typedef struct EntryArrayObject EntryArrayObject;
/* Object types */
typedef enum ObjectType {
OBJECT_UNUSED, /* also serves as "any type" or "additional context" */
} ObjectType;
/* Object flags */
enum {
OBJECT_COMPRESSED_XZ = 1 << 0,
};
struct ObjectHeader {
} _packed_;
struct DataObject {
} _packed_;
struct FieldObject {
} _packed_;
struct EntryItem {
} _packed_;
struct EntryObject {
} _packed_;
struct HashItem {
} _packed_;
struct HashTableObject {
} _packed_;
struct EntryArrayObject {
} _packed_;
struct TagObject {
} _packed_;
union Object {
};
enum {
STATE_OFFLINE = 0,
STATE_ONLINE = 1,
STATE_ARCHIVED = 2,
};
/* Header flags */
enum {
HEADER_INCOMPATIBLE_COMPRESSED_XZ = 1 << 0,
};
#define HEADER_INCOMPATIBLE_ANY (HEADER_INCOMPATIBLE_COMPRESSED_XZ|HEADER_INCOMPATIBLE_COMPRESSED_LZ4)
#else
# define HEADER_INCOMPATIBLE_SUPPORTED 0
#endif
enum {
};
#ifdef HAVE_GCRYPT
#else
# define HEADER_COMPATIBLE_SUPPORTED 0
#endif
struct Header {
/* Added in 187 */
/* Added in 189 */
/* Size: 240 */
} _packed_;
struct FSSHeader {
} _packed_;