summaryrefslogtreecommitdiffstats
path: root/database/engine/metadata_log/metadatalog.h
blob: b484686de60eb9f3cb28bcae66d67978a0d0d79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_METADATALOG_H
#define NETDATA_METADATALOG_H

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "../rrdengine.h"
#include "metadatalogprotocol.h"
#include "logfile.h"
#include "metadatalogapi.h"
#include "compaction.h"

/* Forward declerations */
struct metalog_instance;
struct parser_user_object;

#define METALOG_FILE_NUMBER_SCAN_TMPL "%5u-%5u"
#define METALOG_FILE_NUMBER_PRINT_TMPL "%5.5u-%5.5u"

struct metalog_instance {
    struct rrdengine_instance *rrdeng_ctx;
    struct parser_user_object *metalog_parser_object;
    uint8_t initialized; /* set to 1 to mark context initialized */
};

#endif /* NETDATA_METADATALOG_H */