diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-02-16 19:45:06 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-18 00:36:47 +0200 |
commit | 420a96a1f0dd3fbde304dee5d71457f5ef7b1889 (patch) | |
tree | 2fe707de6896846c497c65a8d5e9a03b72a25a7b /common/glib-helper.h | |
parent | e2f70b056ea752e83b4de7f1d11e08375e7db991 (diff) |
Make temporary changes to BtIO API so it doesn't conflicts with old code.
Diffstat (limited to 'common/glib-helper.h')
-rw-r--r-- | common/glib-helper.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/glib-helper.h b/common/glib-helper.h index 5a40c473..087f1644 100644 --- a/common/glib-helper.h +++ b/common/glib-helper.h @@ -69,18 +69,18 @@ int bt_acl_encrypt(const bdaddr_t *src, const bdaddr_t *dst, typedef struct bt_io BtIO; typedef enum { - BT_IO_AUTO, - BT_IO_L2CAP, - BT_IO_RFCOMM, - BT_IO_SCO, + BT_IO_TRANS_AUTO, + BT_IO_TRANS_L2CAP, + BT_IO_TRANS_RFCOMM, + BT_IO_TRANS_SCO, } BtIOTransport; typedef enum { BT_IO_SUCCESS, BT_IO_FAILED, -} BtIOError; +} BtIOReturn; -typedef void (*BtIOFunc) (BtIO *io, BtIOError err, GIOChannel *chan, +typedef void (*BtIOFunc) (BtIO *io, BtIOReturn err, GIOChannel *chan, gpointer user_data); BtIO *bt_io_create(BtIOTransport type, gpointer user_data, GDestroyNotify notify); @@ -98,4 +98,4 @@ gboolean bt_io_set_psm(BtIO *io, guint16 psm); guint16 bt_io_get_psm(BtIO *io); gboolean bt_io_set_mtu(BtIO *io, guint16 mtu); guint16 bt_io_get_mtu(BtIO *io); -BtIOError bt_io_shutdown(BtIO *io); +BtIOReturn bt_io_shutdown(BtIO *io); |