/**
* Returns a NULL-terminated list of options this module can take.
* Can be NULL, if the module has no options.
- *
- * If cached is TRUE, no new GVariants are created for the def and
- * values fields; instead, the current values are returned.
*/
- struct sr_option *(*options) (void);
+ const struct sr_option *(*options) (void);
/**
* This function is called once, at the beginning of an output stream.
{ 0 }
};
-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_uint32(DEFAULT_SAMPLES_PER_LINE);
{ 0 }
};
-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_uint32(DEFAULT_SAMPLES_PER_LINE);
{ 0 }
};
-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_uint32(DEFAULT_SAMPLES_PER_LINE);
GHashTable *options, const struct sr_dev_inst *sdi)
{
struct sr_output *op;
- struct sr_option *mod_opts;
+ const struct sr_option *mod_opts;
const GVariantType *gvt;
GHashTable *new_opts;
GHashTableIter iter;
{ 0 }
};
-static struct sr_option *get_options(void)
+static const struct sr_option *get_options(void)
{
if (!options[0].def)
options[0].def = g_variant_ref_sink(g_variant_new_double(0.0));