Next: Handling Writes, Previous: Lifecycle, Up: Writing Plugins [Contents]
GHashTable *batch = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free,
(GDestroyNotify) stca_value_free);
g_hash_table_insert (batch, g_strdup ("temperature"),
stca_value_new (21.5, STCA_ACCESS_READ));
g_hash_table_insert (batch, g_strdup ("setpoint"),
stca_value_new (22.0,
STCA_ACCESS_READ | STCA_ACCESS_WRITE));
stca_plugin_emit_data_ready (STCA_PLUGIN (self), batch);
g_hash_table_unref (batch);
The signal payload is transfer-none for the duration of handlers; the adapter copies what it needs.