summaryrefslogtreecommitdiffstats
path: root/src/aclk/schema-wrappers/agent_cmds.h
blob: 7e01f86c5717f56ed1dac0473021778a1a5bc1c1 (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
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef ACLK_SCHEMA_WRAPPERS_AGENT_CMDS_H
#define ACLK_SCHEMA_WRAPPERS_AGENT_CMDS_H

#include "libnetdata/libnetdata.h"

#ifdef __cplusplus
extern "C" {
#endif

struct aclk_cancel_pending_req {
    char *request_id;

    struct timeval timestamp;

    char *trace_id;
};

int parse_cancel_pending_req(const char *msg, size_t msg_len, struct aclk_cancel_pending_req *req);
void free_cancel_pending_req(struct aclk_cancel_pending_req *req);

#ifdef __cplusplus
}
#endif

#endif /* ACLK_SCHEMA_WRAPPERS_AGENT_CMDS_H */