mirror of https://github.com/labapart/gattlib
include/gattlib.h: Added some function documentation
parent
2ae549f9d6
commit
40eec80170
|
@ -195,8 +195,24 @@ gatt_connection_t *gattlib_connect_async(const char *src, const char *dst,
|
||||||
unsigned long options,
|
unsigned long options,
|
||||||
gatt_connect_cb_t connect_cb, void* data);
|
gatt_connect_cb_t connect_cb, void* data);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Function to disconnect the GATT connection
|
||||||
|
*
|
||||||
|
* @param connection Active GATT connection
|
||||||
|
*
|
||||||
|
* @return GATTLIB_SUCCESS on success or GATTLIB_* error code
|
||||||
|
*/
|
||||||
int gattlib_disconnect(gatt_connection_t* connection);
|
int gattlib_disconnect(gatt_connection_t* connection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Function to register a callback on GATT disconnection
|
||||||
|
*
|
||||||
|
* @param connection Active GATT connection
|
||||||
|
* @param handler is the callaback to invoke on disconnection
|
||||||
|
* @param user_data is user specific data to pass to the callaback
|
||||||
|
*
|
||||||
|
* @return GATTLIB_SUCCESS on success or GATTLIB_* error code
|
||||||
|
*/
|
||||||
void gattlib_register_on_disconnect(gatt_connection_t *connection, gattlib_disconnection_handler_t handler, void* user_data);
|
void gattlib_register_on_disconnect(gatt_connection_t *connection, gattlib_disconnection_handler_t handler, void* user_data);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Reference in New Issue