2 * This file is part of samsung-ril.
4 * Copyright (C) 2011-2012 Paul Kocialkowski <contact@oaulk.fr>
6 * samsung-ril is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * samsung-ril is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with samsung-ril. If not, see <http://www.gnu.org/licenses/>.
24 #include <sys/types.h>
25 #include <sys/socket.h>
26 #include <sys/select.h>
29 #include <arpa/inet.h>
30 #include <netinet/in.h>
32 #include <samsung-ril-socket.h>
34 #define SRS_CLIENT_LOCK() pthread_mutex_lock(&client_data->mutex)
35 #define SRS_CLIENT_UNLOCK() pthread_mutex_unlock(&client_data->mutex)
37 struct srs_client_info {
41 struct srs_client_data {
42 struct ril_client *client;
47 struct list_head *clients;
50 pthread_mutex_t mutex;
54 extern struct ril_client_funcs srs_client_funcs;
56 int srs_send(unsigned short command, void *data, int length);
57 void srs_control_ping(struct srs_message *message);