-/** @private
- * Allocate and init a new device instance struct.
- *
- * @retval struct sr_dev_inst *. Dynamically allocated, free using
- * sr_dev_inst_free().
- */
-SR_PRIV struct sr_dev_inst *sr_dev_inst_new(void)
-{
- struct sr_dev_inst *sdi;
-
- sdi = g_malloc0(sizeof(struct sr_dev_inst));
-
- sdi->driver = NULL;
- sdi->status = -1;
- sdi->inst_type = -1;
- sdi->vendor = NULL;
- sdi->model = NULL;
- sdi->version = NULL;
- sdi->serial_num = NULL;
- sdi->connection_id = NULL;
- sdi->channels = NULL;
- sdi->channel_groups = NULL;
- sdi->session = NULL;
- sdi->conn = NULL;
- sdi->priv = NULL;
-
- return sdi;
-}
-