journal-def.h revision d05089d86ef032b245c7f928e623b88c82998ab0
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#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 "sparse-endian.h"
#include "systemd/sd-id128.h"
#include "macro.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 */
enum {
OBJECT_UNUSED, /* also serves as "any type" or "additional context" */
};
/* 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: 224 */
} _packed_;
struct FSSHeader {
} _packed_;