static void hh2serial_exit(void) { if (hh2serial_device != NULL) { connman_device_unregister(hh2serial_device); connman_device_unref(hh2serial_device); } }
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); }
static void unregister_device(gpointer data) { struct connman_device *device = data; DBG(""); remove_device_networks(device); connman_device_unregister(device); connman_device_unref(device); }
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); }
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); }
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); }
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; }