Hi Andrei, On Thu, Nov 14, 2013 at 5:11 PM, Andrei Emeltchenko <Andrei.Emeltchenko.news@xxxxxxxxx> wrote: > 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 */ > +}; Here you don't really need to define channel as int do you? Also if in future we want to replace this with splice this should use a pipe to communicate with the HAL. Btw, introducing lists and struct without any implementation is never very good to review, because I have no idea in what context they will be used. -- Luiz Augusto von Dentz -- 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