From 0091ceae5f7cbeeb42e3b43de3dcf8e500fe8752 Mon Sep 17 00:00:00 2001 From: PaulK Date: Wed, 21 Dec 2011 21:54:03 +0100 Subject: RIL rework: multi-client, more stable, added GPLv3 copyright notice --- srs.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 srs.h (limited to 'srs.h') diff --git a/srs.h b/srs.h new file mode 100644 index 0000000..2ef9c8c --- /dev/null +++ b/srs.h @@ -0,0 +1,50 @@ +/** + * This file is part of samsung-ril. + * + * Copyright (C) 2011 Paul Kocialkowski + * + * samsung-ril is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * samsung-ril is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with samsung-ril. If not, see . + * + */ + +#ifndef _SRS_H_ +#define _SRS_H_ + +#include +#include +#include + +#include +#include + +#include + +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); + +#endif -- cgit v1.1