From 0192a461e37cef7e2d95d576b14e0cda277fa25d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 4 Aug 2008 21:20:56 +0200 Subject: Move error_not_supported where it is actually used --- audio/headset.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'audio/headset.c') 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, -- cgit