blob: ef4ec5da61f1175b4a3fa46bfab6055d612799b3 (
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
29
30
31
|
/* SPDX-License-Identifier: MIT */
/*
* Copyright (c) 2022 Solidigm.
*
* Author: leonardo.da.cunha@solidigm.com
*/
#ifndef _SOLIDIGM_TELEMETRY_LOG_H
#define _SOLIDIGM_TELEMETRY_LOG_H
#include "libnvme.h"
#include "util/json.h"
#include <assert.h>
#if !defined __cplusplus
#define static_assert _Static_assert
#endif
#define VA_ARGS(...), ##__VA_ARGS__
#define SOLIDIGM_LOG_WARNING(format, ...) fprintf(stderr, format"\n" VA_ARGS(__VA_ARGS__))
#define MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
struct telemetry_log {
struct nvme_telemetry_log *log;
size_t log_size;
json_object *root;
json_object *configuration;
};
#endif /* _SOLIDIGM_TELEMETRY_LOG_H */
|