bluetooth: Don't log an error if an endpoint type is disabled.

It's perfectly normal for BlueZ to disable some endpoint types, so printing a
log message at error level isn't a good idea.

For facilitating an informative message in case some endpoint type is disabled,
the send_and_add_to_pending() function interface is also changed to be more
generic (the pa_bluetooth_device pointer is replaced with a void pointer).
This commit is contained in:
Tanu Kaskinen 2011-03-21 15:08:34 +02:00 committed by Colin Guthrie
parent 93348331bb
commit 51163d0fd9
2 changed files with 23 additions and 12 deletions

View file

@ -29,6 +29,8 @@
#include <pulsecore/macro.h>
#include <pulsecore/core-util.h>
#define PA_BLUETOOTH_ERROR_NOT_SUPPORTED "org.bluez.Error.NotSupported"
/* UUID copied from bluez/audio/device.h */
#define GENERIC_AUDIO_UUID "00001203-0000-1000-8000-00805f9b34fb"