From 87e1eceda35d2e17ddfff0d099aaac57392e8bf1 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 16 Feb 2009 08:57:32 +0200 Subject: Make old bt_io_connect and bt_io_listen private in preparation of btio import --- common/glib-helper.c | 7 +++++-- common/glib-helper.h | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/glib-helper.c b/common/glib-helper.c index 9e1f6f3f..91d0e455 100644 --- a/common/glib-helper.c +++ b/common/glib-helper.c @@ -68,6 +68,9 @@ struct hci_cmd_data { gpointer caller_data; }; +static BtIOError bt_io_connect(BtIO *io, const char *uuid, BtIOFunc func); +static BtIOError bt_io_listen(BtIO *io, const char *uuid, BtIOFunc func); + static gboolean cached_session_expired(gpointer user_data) { struct cached_sdp_session *cached = user_data; @@ -1618,7 +1621,7 @@ guint16 bt_io_get_mtu(BtIO *io) return io->mtu; } -BtIOError bt_io_connect(BtIO *io, const char *uuid, BtIOFunc func) +static BtIOError bt_io_connect(BtIO *io, const char *uuid, BtIOFunc func) { if (!io->connect) return BT_IO_FAILED; @@ -1626,7 +1629,7 @@ BtIOError bt_io_connect(BtIO *io, const char *uuid, BtIOFunc func) return io->connect(io, func); } -BtIOError bt_io_listen(BtIO *io, const char *uuid, BtIOFunc func) +static BtIOError bt_io_listen(BtIO *io, const char *uuid, BtIOFunc func) { if (!io->listen) return BT_IO_FAILED; diff --git a/common/glib-helper.h b/common/glib-helper.h index 0b06ca6c..5a40c473 100644 --- a/common/glib-helper.h +++ b/common/glib-helper.h @@ -98,6 +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_connect(BtIO *io, const char *uuid, BtIOFunc func); -BtIOError bt_io_listen(BtIO *io, const char *uuid, BtIOFunc func); BtIOError bt_io_shutdown(BtIO *io); -- cgit