From 7a6368d26192e81529bc0d39c9c343a822ff175f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 4 Aug 2008 21:41:36 +0200 Subject: Move error_connection_attempt_failed to its usage places --- audio/headset.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'audio/headset.c') 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, -- cgit