diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-16 08:57:32 +0200 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-16 08:57:32 +0200 | 
| commit | 87e1eceda35d2e17ddfff0d099aaac57392e8bf1 (patch) | |
| tree | da8010cffe420931af21c0746cd6af79d055774e | |
| parent | 8dffd114dc07a2ec5832ae6b230a265fce10e7e9 (diff) | |
Make old bt_io_connect and bt_io_listen private in preparation of btio import
| -rw-r--r-- | common/glib-helper.c | 7 | ||||
| -rw-r--r-- | common/glib-helper.h | 2 | 
2 files changed, 5 insertions, 4 deletions
| 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); | 
