diff options
author | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-08-27 01:05:35 +0400 |
---|---|---|
committer | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-08-27 01:05:35 +0400 |
commit | 4e7ae4c51022ba448c3bb6f9fd92d290b609c696 (patch) | |
tree | 12eefa14b9a5bdfc06c9e63d51d233b017279ca2 /srs.h | |
parent | 1fbf7af4be21dd47ea9a39582d3909a742bbbb5d (diff) | |
download | hardware_ril_samsung-ril-4e7ae4c51022ba448c3bb6f9fd92d290b609c696.zip hardware_ril_samsung-ril-4e7ae4c51022ba448c3bb6f9fd92d290b609c696.tar.gz hardware_ril_samsung-ril-4e7ae4c51022ba448c3bb6f9fd92d290b609c696.tar.bz2 |
Rework SRS to support multiple clients
This fixes deadlocks on Galaxy Nexus (Tuna)
when GPS/NFC libraries open the socket thus preventing
in-call audio from functioning
Diffstat (limited to 'srs.h')
-rw-r--r-- | srs.h | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -30,21 +30,7 @@ #include <samsung-ril-socket.h> -struct srs_server { - int server_fd; - int client_fd; - struct sockaddr_un client_addr; - int client_addr_len; -}; - extern struct ril_client_funcs srs_client_funcs; - -struct srs_server *srs_server_new(void); -int srs_server_send(unsigned short command, void *data, int data_len); -int srs_server_recv(struct srs_server *srs_server, struct srs_message *message); -int srs_server_accept(struct srs_server *srs_server); -int srs_server_open(struct srs_server *srs_server); - -void srs_control_ping(struct srs_message *message); +extern void srs_control_ping(int fd, struct srs_message *message); #endif |