summaryrefslogtreecommitdiff
path: root/profiles/network/bnep.h
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2015-03-12 18:07:30 +0100
committerSzymon Janc <szymon.janc@gmail.com>2015-03-12 23:25:42 +0100
commitb3c62f30630a173e5155e6f425a18bfcb2c993c3 (patch)
treee3c37e58f838af472296612661060b2b86611fe1 /profiles/network/bnep.h
parent7824d0b60cf894bb94314aaa4802414e38338d8a (diff)
downloadbluez-b3c62f30630a173e5155e6f425a18bfcb2c993c3.tar.gz
profiles/network: Move disconnection_cb setting to bnep connect
Disconnect callback can be set while connecting bnep. In previous implementation there was separated method to setting up the disconnect callback and it was always called immediately after calling connect - this method was redundand.
Diffstat (limited to 'profiles/network/bnep.h')
-rw-r--r--profiles/network/bnep.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/profiles/network/bnep.h b/profiles/network/bnep.h
index da706ac3d..e9f4c1cf2 100644
--- a/profiles/network/bnep.h
+++ b/profiles/network/bnep.h
@@ -31,10 +31,10 @@ struct bnep *bnep_new(int sk, uint16_t local_role, uint16_t remote_role,
void bnep_free(struct bnep *session);
typedef void (*bnep_connect_cb) (char *iface, int err, void *data);
-int bnep_connect(struct bnep *session, bnep_connect_cb conn_cb, void *data);
typedef void (*bnep_disconnect_cb) (void *data);
-void bnep_set_disconnect(struct bnep *session, bnep_disconnect_cb disconn_cb,
- void *data);
+int bnep_connect(struct bnep *session, bnep_connect_cb conn_cb,
+ bnep_disconnect_cb disconn_cb,
+ void *conn_data, void *disconn_data);
void bnep_disconnect(struct bnep *session);
int bnep_server_add(int sk, char *bridge, char *iface, const bdaddr_t *addr,