Home | History | Annotate | Download | only in include

Lines Matching refs:client

29   void (*connected)(l2cap_client_t* client, void* context);
30 void (*disconnected)(l2cap_client_t* client, void* context);
31 void (*read_ready)(l2cap_client_t* client, buffer_t* packet, void* context);
32 void (*write_ready)(l2cap_client_t* client, void* context);
41 // Creates and returns a new L2CAP client object. |callbacks| must not be NULL
49 // Frees the L2CAP client object allocated with |l2cap_client_new|. |client| may
51 void l2cap_client_free(l2cap_client_t* client);
53 // Attempts to connect the |client| to a peer device specified by
60 // while |l2cap_client_is_connected|. |client| and |remote_bdaddr| must not be
62 bool l2cap_client_connect(l2cap_client_t* client,
65 // Disconnects a connected |client|. This function is asynchronous and
67 // |client| must not be NULL.
68 void l2cap_client_disconnect(l2cap_client_t* client);
70 // Returns true if |client| is connected and is ready to accept data written
71 // to it. |client| must not be NULL.
72 bool l2cap_client_is_connected(const l2cap_client_t* client);
74 // Writes data contained in |packet| to a connected |client|. This function
76 // client cannot accept more data at this time. If this function returns false,
78 // to the client. Neither |client| nor |packet| may be NULL.
79 bool l2cap_client_write(l2cap_client_t* client, buffer_t* packet);