dbus: Implement gattlib_connect_async()

pull/97/head
Olivier Martin 2019-05-19 00:19:33 +02:00 committed by Olivier Martin
parent 510d650b85
commit ca9725f806
1 changed files with 8 additions and 1 deletions

View File

@ -360,7 +360,14 @@ gatt_connection_t *gattlib_connect_async(const char *src, const char *dst,
uint8_t dest_type, gattlib_bt_sec_level_t sec_level, int psm, int mtu,
gatt_connect_cb_t connect_cb, void* data)
{
return NULL;
gatt_connection_t *connection;
connection = gattlib_connect(src, dst, dest_type, sec_level, psm, mtu);
if ((connection != NULL) && (connect_cb != NULL)) {
connect_cb(connection, data);
}
return connection;
}
int gattlib_disconnect(gatt_connection_t* connection) {