diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-08-04 21:41:36 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-08-04 21:41:36 +0200 |
commit | 7a6368d26192e81529bc0d39c9c343a822ff175f (patch) | |
tree | 06ba97043e674dabd44a17429d3a27b3c1c3f917 /common | |
parent | 1f57429a07bbe7021889d9cfad6f4aa270d1d2c2 (diff) |
Move error_connection_attempt_failed to its usage places
Diffstat (limited to 'common')
-rw-r--r-- | common/error.c | 13 | ||||
-rw-r--r-- | common/error.h | 4 |
2 files changed, 0 insertions, 17 deletions
diff --git a/common/error.c b/common/error.c index d6f321bd..825cde4f 100644 --- a/common/error.c +++ b/common/error.c @@ -35,19 +35,6 @@ #include "error.h" -/** - org.bluez.Error.ConnectionAttemptFailed: - - An unexpected error (other than DeviceUnreachable) error has occured while - attempting a connection to a device -*/ -DBusHandlerResult error_connection_attempt_failed(DBusConnection *conn, DBusMessage *msg, int err) -{ - return error_common_reply(conn, msg, - ERROR_INTERFACE ".ConnectionAttemptFailed", - err > 0 ? strerror(err) : "Connection attempt failed"); -} - /* Helper function - internal use only */ DBusHandlerResult error_common_reply(DBusConnection *conn, DBusMessage *msg, const char *name, const char *descr) diff --git a/common/error.h b/common/error.h index 63ce2069..644e385f 100644 --- a/common/error.h +++ b/common/error.h @@ -27,9 +27,5 @@ #define ERROR_INTERFACE "org.bluez.Error" -DBusHandlerResult error_connection_attempt_failed(DBusConnection *conn, - DBusMessage *msg, - int err); - DBusHandlerResult error_common_reply(DBusConnection *conn, DBusMessage *msg, const char *name, const char *descr); |