static data_source_t dsrc_test = { "value", DS_TYPE_DERIVE, 0.0, NAN };
static data_set_t const ds_test = { "test", 1, &dsrc_test };
static data_source_t dsrc_test = { "value", DS_TYPE_DERIVE, 0.0, NAN };
static data_set_t const ds_test = { "test", 1, &dsrc_test };
OK1(expect_new_obj == have_new_obj,
(expect_new_obj ? "New obj is created." : "Updating existing obj."));
OK1(expect_new_obj == have_new_obj,
(expect_new_obj ? "New obj is created." : "Updating existing obj."));
static void *lookup_class_callback (data_set_t const *ds,
value_list_t const *vl, void *user_class)
{
static void *lookup_class_callback (data_set_t const *ds,
value_list_t const *vl, void *user_class)
{
data_set_t const *ds = &ds_unknown;
strncpy (vl.host, host, sizeof (vl.host));
data_set_t const *ds = &ds_unknown;
strncpy (vl.host, host, sizeof (vl.host));