summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-04 21:20:56 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-04 21:20:56 +0200
commit0192a461e37cef7e2d95d576b14e0cda277fa25d (patch)
tree7ea8a9e91bc0917616ed609e9da185822480b102 /audio
parent855aecc7b576a5741df3c685ccfa2b3b11cd13ce (diff)
Move error_not_supported where it is actually used
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 61b1745f..1ffa7456 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -145,6 +145,13 @@ struct event {
int (*callback) (struct audio_device *device, const char *buf);
};
+static DBusHandlerResult error_not_supported(DBusConnection *conn,
+ DBusMessage *msg)
+{
+ return error_common_reply(conn, msg, ERROR_INTERFACE ".NotSupported",
+ "Not supported");
+}
+
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,