Home | History | Annotate | Download | only in health

Lines Matching defs:hdp_device

61 static struct hdp_device *create_health_device(DBusConnection *conn,
69 struct hdp_device *dev;
211 const struct hdp_device *hdp_device = a;
214 if (hdp_device->dev == device)
222 const struct hdp_device *device = a;
231 const struct hdp_device *device = a;
298 static void device_unref_mcl(struct hdp_device *hdp_device)
300 if (!hdp_device->mcl)
303 mcap_close_mcl(hdp_device->mcl, FALSE);
304 mcap_mcl_unref(hdp_device->mcl);
305 hdp_device->mcl = NULL;
306 hdp_device->mcl_conn = FALSE;
309 static void free_health_device(struct hdp_device *device)
482 struct hdp_device *dev;
726 struct hdp_device *dev = hdp_chan->dev;
763 static struct hdp_channel *create_channel(struct hdp_device *dev,
812 static void remove_channels(struct hdp_device *dev)
828 static void close_device_con(struct hdp_device *dev, gboolean cache)
950 struct hdp_device *dev = data;
1007 /* struct hdp_device *dev = data; */
1016 struct hdp_device *dev = data;
1036 struct hdp_device *dev = data;
1067 struct hdp_device *dev = data;
1162 struct hdp_device *dev = data;
1189 gboolean hdp_set_mcl_cb(struct hdp_device *device, GError **err)
1216 struct hdp_device *hdp_device;
1232 hdp_device = create_health_device(connection, device);
1233 if (!hdp_device)
1235 devices = g_slist_append(devices, hdp_device);
1237 hdp_device = l->data;
1239 hdp_device->mcl = mcap_mcl_ref(mcl);
1240 hdp_device->mcl_conn = TRUE;
1242 DBG("New mcl connected from %s", device_get_path(hdp_device->dev));
1244 hdp_set_mcl_cb(hdp_device, NULL);
1249 struct hdp_device *hdp_device;
1256 hdp_device = l->data;
1257 hdp_device->mcl_conn = TRUE;
1259 DBG("MCL reconnected %s", device_get_path(hdp_device->dev));
1261 hdp_set_mcl_cb(hdp_device, NULL);
1266 struct hdp_device *hdp_device;
1273 hdp_device = l->data;
1274 hdp_device->mcl_conn = FALSE;
1276 DBG("Mcl disconnected %s", device_get_path(hdp_device->dev));
1281 struct hdp_device *hdp_device;
1289 hdp_device = l->data;
1290 device_unref_mcl(hdp_device);
1292 if (hdp_device->sdp_present)
1299 path = device_get_path(hdp_device->dev);
1300 g_dbus_unregister_interface(hdp_device->conn, path, HEALTH_DEVICE);
1306 struct hdp_device *dev;
1650 struct hdp_device *dev = hdp_chann->dev;
1824 struct hdp_device *device = user_data;
1896 struct hdp_device *device = user_data;
2006 struct hdp_device *device = user_data;
2053 struct hdp_device *device = user_data;
2082 struct hdp_device *device = data;
2115 static struct hdp_device *create_health_device(DBusConnection *conn,
2120 struct hdp_device *dev;
2126 dev = g_new0(struct hdp_device, 1);
2156 struct hdp_device *hdev;
2178 struct hdp_device *hdp_dev;
2216 struct hdp_device *health_device_ref(struct hdp_device *hdp_dev)
2225 void health_device_unref(struct hdp_device *hdp_dev)