static DBusMessage *remove_saved_service(DBusConnection *conn, DBusMessage *msg, void *data) { gchar *identifier; int i; struct connman_service *service; dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &identifier, DBUS_TYPE_INVALID); if (connman_service_remove(identifier) != TRUE) return __connman_error_failed(msg, EINVAL); return dbus_message_new_method_return(msg); }
static void favorite_button_toggled(GtkToggleButton *togglebutton, gpointer user_data) { if (gtk_toggle_button_get_active(togglebutton) == FALSE) connman_service_remove(path); }