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 /audio | |
parent | 1f57429a07bbe7021889d9cfad6f4aa270d1d2c2 (diff) |
Move error_connection_attempt_failed to its usage places
Diffstat (limited to 'audio')
-rw-r--r-- | audio/headset.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index 1ffa7456..bcbc9e8a 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -152,6 +152,14 @@ static DBusHandlerResult error_not_supported(DBusConnection *conn, "Not supported"); } +static 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"); +} + static int rfcomm_connect(struct audio_device *device, headset_stream_cb_t cb, void *user_data, unsigned int *cb_id); static int get_records(struct audio_device *device, headset_stream_cb_t cb, |