X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Futils%2Fproto.h;h=b626781f9a1f70652bd0de5fa7a51455ff57c346;hb=af24300b64d721ec7e3be3edee1477d83b135f8b;hp=df24278742227e1b845e23f20145ef194f141c14;hpb=c9a8aeb13d617c36e5ef71d6abf8223ac91fcdb1;p=sysdb.git diff --git a/src/include/utils/proto.h b/src/include/utils/proto.h index df24278..b626781 100644 --- a/src/include/utils/proto.h +++ b/src/include/utils/proto.h @@ -46,12 +46,14 @@ typedef struct { 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; @@ -60,6 +62,7 @@ typedef struct { 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; @@ -69,6 +72,7 @@ typedef struct { 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: