index df24278742227e1b845e23f20145ef194f141c14..b626781f9a1f70652bd0de5fa7a51455ff57c346 100644 (file)
sdb_time_t last_update;
const char *name;
} sdb_proto_host_t;
+#define SDB_PROTO_HOST_INIT { 0, NULL }
typedef struct {
sdb_time_t last_update;
const char *hostname;
const char *name;
} sdb_proto_service_t;
+#define SDB_PROTO_SERVICE_INIT { 0, NULL, NULL }
typedef struct {
sdb_time_t last_update;
const char *store_type; /* optional */
const char *store_id; /* optional */
} sdb_proto_metric_t;
+#define SDB_PROTO_METRIC_INIT { 0, NULL, NULL, NULL, NULL }
typedef struct {
sdb_time_t last_update;
const char *key;
sdb_data_t value;
} sdb_proto_attribute_t;
+#define SDB_PROTO_ATTRIBUTE_INIT { 0, 0, NULL, NULL, NULL, SDB_DATA_INIT }
/*
* sdb_proto_marshal: