diff options
author | Paulo Alcantara <paulo.alcantara@openbossa.org> | 2012-07-23 11:36:03 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-07-24 11:48:21 +0200 |
commit | d9e204c065390600a5c20f6c41b43be39c9711ab (patch) | |
tree | b6623a79af4cb26918ed01ec7b5be3824772d257 /btio/btio.h | |
parent | 83d23c059be742a3178c6feab1f45addd5bc7454 (diff) | |
download | bluez-d9e204c065390600a5c20f6c41b43be39c9711ab.tar.gz |
btio: Rescue lost errorneous numbers
The BT_IO_ERROR_* flags are not used for anything else and we just
loosing errorneous numbers set in the sockets that might be more
useful for handling specific errors.
A use case would be disconnect errors that should not allow BlueZ to
enable auto connections since the connection would never be possible in
some cases.
This patch removes BT_IO_ERROR_* flags and use the errors set in the
sockets instead. Now, the errors passed in connect/disconnect callbacks
should contain proper error numbers passed to them.
Diffstat (limited to 'btio/btio.h')
-rw-r--r-- | btio/btio.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/btio/btio.h b/btio/btio.h index cf0e07008..70b32d61d 100644 --- a/btio/btio.h +++ b/btio/btio.h @@ -26,13 +26,6 @@ #include <glib.h> -typedef enum { - BT_IO_ERROR_DISCONNECTED, - BT_IO_ERROR_CONNECT_FAILED, - BT_IO_ERROR_FAILED, - BT_IO_ERROR_INVALID_ARGS, -} BtIOError; - #define BT_IO_ERROR bt_io_error_quark() GQuark bt_io_error_quark(void); |