static struct event_field exp_int = {
.key = "abc",
.value_type = EVENT_FIELD_VALUE_TYPE_INTMAX,
- .value.intmax = 42,
- .value.str = NULL,
- .value.timeval = {0},
+ .value = {
+ .str = NULL,
+ .intmax = 42,
+ .timeval = {0},
+ }
};
static struct event_field exp_2int[2] = {
{
.key = "abc",
.value_type = EVENT_FIELD_VALUE_TYPE_INTMAX,
- .value.intmax = 42,
- .value.str = NULL,
- .value.timeval = {0},
+ .value = {
+ .intmax = 42,
+ .str = NULL,
+ .timeval = {0},
+ }
},
{
.key = "def",
.value_type = EVENT_FIELD_VALUE_TYPE_INTMAX,
- .value.intmax = 49,
- .value.str = NULL,
- .value.timeval = {0},
+ .value = {
+ .intmax = 49,
+ .str = NULL,
+ .timeval = {0},
+ }
},
};
static struct event_field exp_1str1int[2] = {
{
.key = "abc",
.value_type = EVENT_FIELD_VALUE_TYPE_STR,
- .value.str = "foo",
- .value.intmax = 0,
- .value.timeval = {0},
+ .value = {
+ .str = "foo",
+ .intmax = 0,
+ .timeval = {0},
+ }
},
{
.key = "def",
.value_type = EVENT_FIELD_VALUE_TYPE_INTMAX,
- .value.intmax = 49,
- .value.str = NULL,
- .value.timeval = {0},
+ .value = {
+ .intmax = 49,
+ .str = NULL,
+ .timeval = {0},
+ }
},
};
struct event *parent;
static struct event_field exp_int = {
.key = "abc",
.value_type = EVENT_FIELD_VALUE_TYPE_INTMAX,
- .value.intmax = 42,
- .value.str = NULL,
- .value.timeval = {0},
+ .value = {
+ .intmax = 42,
+ .str = NULL,
+ .timeval = {0},
+ }
};
static struct event_field exp_str = {
.key = "abc",
.value_type = EVENT_FIELD_VALUE_TYPE_STR,
- .value.str = "def",
- .value.intmax = 0,
- .value.timeval = {0},
+ .value = {
+ .str = "def",
+ .intmax = 0,
+ .timeval = {0},
+ }
};
static struct event_field exp_2str[2] = {
{
.key = "abc",
.value_type = EVENT_FIELD_VALUE_TYPE_STR,
- .value.str = "def",
- .value.intmax = 0,
- .value.timeval = {0},
+ .value = {
+ .str = "def",
+ .intmax = 0,
+ .timeval = {0},
+ }
},
{
.key = "foo",
.value_type = EVENT_FIELD_VALUE_TYPE_STR,
- .value.str = "bar",
- .value.intmax = 0,
- .value.timeval = {0},
+ .value = {
+ .str = "bar",
+ .intmax = 0,
+ .timeval = {0},
+ }
},
};
struct event *parent;