Add private storage pointer to struct sr_channel.

This commit is contained in:
Bert Vermeulen 2014-09-08 03:25:41 +02:00
parent 478c8d923e
commit 379d260965
2 changed files with 3 additions and 0 deletions

View File

@ -469,6 +469,8 @@ struct sr_channel {
gboolean enabled;
/** Name of channel. */
char *name;
/** Private data for driver use. */
void *priv;
};
/** Structure for groups of channels that have common properties. */

View File

@ -251,6 +251,7 @@ SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi)
for (l = sdi->channels; l; l = l->next) {
ch = l->data;
g_free(ch->name);
g_free(ch->priv);
g_free(ch);
}
g_slist_free(sdi->channels);