return size;
}
+
static int receive(const struct sr_output *o, const struct sr_datafeed_packet *packet,
GString **out)
{
static struct sr_option options[] = {
{ "scale", "Scale", "Scale values by factor", NULL, NULL },
- { 0 }
+ ALL_ZERO
};
-static struct sr_option *get_options(void)
+static const struct sr_option *get_options(void)
{
- if (!options[0].def) {
- options[0].def = g_variant_new_double(0.0);
- g_variant_ref_sink(options[0].def);
- }
+ if (!options[0].def)
+ options[0].def = g_variant_ref_sink(g_variant_new_double(0.0));
return options;
}