From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> This defines structures for socket HAL. We need to emulate Android sockets by sending connect/accept signals over file descriptor. --- android/socket.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/android/socket.c b/android/socket.c index e580036..4699dce 100644 --- a/android/socket.c +++ b/android/socket.c @@ -37,6 +37,18 @@ static bdaddr_t adapter_addr; +/* Simple list of RFCOMM server sockets */ +GList *rfcomm_srv_list = NULL; + +/* Simple list of RFCOMM connected sockets */ +GList *rfcomm_connected_list = NULL; + +struct rfcomm_slot { + int fd; /* descriptor for communication with Java framework */ + int real_sock; /* real RFCOMM socket */ + int channel; /* RFCOMM channel */ +}; + static int handle_listen(void *buf) { DBG("Not implemented"); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html