diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 19:12:57 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 19:12:57 +0000 |
commit | 54dc459770b50d014b9d7eae037578086a29a535 (patch) | |
tree | 6434693b7e056f1f48f5a12ea2ba92bc759738a3 /hcid/dbus-error.c | |
parent | 45df23c4593250e58e355bf3cde15abb2d6d4c3c (diff) |
Add another bunch of bonding related error functions
Diffstat (limited to 'hcid/dbus-error.c')
-rw-r--r-- | hcid/dbus-error.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/hcid/dbus-error.c b/hcid/dbus-error.c index 2e1c50ed..c93b103c 100644 --- a/hcid/dbus-error.c +++ b/hcid/dbus-error.c @@ -206,11 +206,31 @@ DBusMessage *error_not_connected(DBusMessage *msg) "Not connected"); } +static DBusMessage *error_already_exists(DBusMessage *msg, const char *str) +{ + return dbus_message_new_error(msg, ERROR_INTERFACE ".AlreadyExists", str); +} + +static DBusMessage *error_does_not_exists(DBusMessage *msg, const char *str) +{ + return dbus_message_new_error(msg, ERROR_INTERFACE ".DoesNotExists", str); +} + static DBusMessage *error_in_progress(DBusMessage *msg, const char *str) { return dbus_message_new_error(msg, ERROR_INTERFACE ".InProgress", str); } +DBusMessage *error_bonding_already_exists(DBusMessage *msg) +{ + return error_already_exists(msg, "Bonding already exists"); +} + +DBusMessage *error_bonding_does_not_exists(DBusMessage *msg) +{ + return error_does_not_exists(msg, "Bonding does not exists"); +} + DBusMessage *error_bonding_in_progress(DBusMessage *msg) { return error_in_progress(msg, "Bonding in progress"); |