Refactor: Deactivate all contexts function

This commit is contained in:
Denis Kenzior 2009-10-22 17:49:49 -05:00 committed by Denis Kenzior
parent 752468b16e
commit 369d9f8f33
1 changed files with 1 additions and 8 deletions

View File

@ -743,17 +743,10 @@ static DBusMessage *gprs_deactivate_all(DBusConnection *conn,
if (gprs->pending)
return __ofono_error_busy(msg);
if (!gprs->driver->set_active_all)
return __ofono_error_not_implemented(msg);
if (!dbus_message_get_args(msg, NULL, DBUS_TYPE_INVALID))
return __ofono_error_invalid_args(msg);
gprs->pending = dbus_message_ref(msg);
gprs->driver->set_active_all(gprs, 0, gprs_generic_callback, gprs);
return NULL;
return __ofono_error_not_implemented(msg);
}
static GDBusMethodTable manager_methods[] = {