コード例 #1
0
static void hh2serial_exit(void)
{
	if (hh2serial_device != NULL) {
		connman_device_unregister(hh2serial_device);
		connman_device_unref(hh2serial_device);
	}
}
コード例 #2
0
ファイル: hh2serial-gps.c プロジェクト: jgke/connman-sandbox
static void hh2serial_exit(void)
{
    if (hh2serial_device) {
        connman_device_unregister(hh2serial_device);
        connman_device_unref(hh2serial_device);
    }

    connman_device_driver_unregister(&hh2serial_device_driver);
}
コード例 #3
0
ファイル: bluetooth_legacy.c プロジェクト: manjurajv/connman
static void unregister_device(gpointer data)
{
	struct connman_device *device = data;

	DBG("");

	remove_device_networks(device);

	connman_device_unregister(device);
	connman_device_unref(device);
}
コード例 #4
0
ファイル: bluetooth.c プロジェクト: igaw/connman
static void device_free(gpointer data)
{
	struct connman_device *device = data;
	GDBusProxy *proxy = connman_device_get_data(device);

	connman_device_set_data(device, NULL);
	if (proxy)
		g_dbus_proxy_unref(proxy);

	connman_device_unregister(device);
	connman_device_unref(device);
}
コード例 #5
0
ファイル: jolla-gps.c プロジェクト: amccarthy/connman
static void jolla_gps_exit()
{
    DBG("");

    if (jolla_gps_device != NULL) {
        connman_device_unregister(jolla_gps_device);
        connman_device_unref(jolla_gps_device);
        jolla_gps_device = NULL;
    }

    connman_device_driver_unregister(&device_driver);
    connman_technology_driver_unregister(&tech_driver);
}
コード例 #6
0
ファイル: detect.c プロジェクト: bq/cervantes-conman
static void detect_dellink(unsigned short type, int index,
					unsigned flags, unsigned change)
{
	struct connman_device *device;

	DBG("type %d index %d", type, index);

	device = find_device(index);
	if (device == NULL)
		return;

	device_list = g_slist_remove(device_list, device);

	connman_device_unregister(device);
	connman_device_unref(device);
}
コード例 #7
0
ファイル: detect.c プロジェクト: bq/cervantes-conman
void __connman_detect_cleanup(void)
{
	GSList *list;

	DBG("");

	connman_rtnl_unregister(&detect_rtnl);

	for (list = device_list; list; list = list->next) {
		struct connman_device *device = list->data;

		connman_device_unregister(device);
		connman_device_unref(device);
	}

	g_slist_free(device_list);
	device_list = NULL;
}