forked from eric/rubyrrdtool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrrd_info.h
47 lines (39 loc) · 826 Bytes
/
rrd_info.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* -*- C -*-
* file: rrd_info.h
* date: $Date: 2008/03/11 22:47:06 $
* init: 2005-07-26
* vers: $Version$
* auth: $Author: dbach $
* -----
*
* Support file to add rrd_info() to rrd.h
*
*/
#ifndef __RRD_INFO_H
#define __RRD_INFO_H
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
/* rrd info interface
enum info_type { RD_I_VAL=0,
RD_I_CNT,
RD_I_STR,
RD_I_INT };
*/
typedef union infoval {
unsigned long u_cnt;
rrd_value_t u_val;
char *u_str;
int u_int;
} infoval;
typedef struct info_t {
char *key;
rrd_info_type_t type;
union infoval value;
struct info_t *next;
} info_t;
//info_t *rrd_info(int, char **);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#endif /* __RRD_INFO_H */