summaryrefslogtreecommitdiffstats
path: root/srs.h
diff options
context:
space:
mode:
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-08-27 01:05:35 +0400
committerAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-08-27 01:05:35 +0400
commit4e7ae4c51022ba448c3bb6f9fd92d290b609c696 (patch)
tree12eefa14b9a5bdfc06c9e63d51d233b017279ca2 /srs.h
parent1fbf7af4be21dd47ea9a39582d3909a742bbbb5d (diff)
downloadhardware_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.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/srs.h b/srs.h
index 2ef9c8c..5e01383 100644
--- a/srs.h
+++ b/srs.h
@@ -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