From 9c2af753c0ca7e344019e33911bc590f35f81b12 Mon Sep 17 00:00:00 2001 From: Tony Espy Date: Tue, 13 Oct 2015 18:07:52 +0200 Subject: gril: Library to communicate with rild gril is a library used to communicate with rild, the Android telephony daemon. Communication happens using a named socket over which binder parcels are transmitted. Co-authored-by: Tony Espy Co-authored-by: Ricardo Salveti de Araujo Co-authored-by: Alfonso Sanchez-Beato Co-authored-by: Mikko Hurskainen Co-authored-by: You-Sheng Yang Co-authored-by: Ratchanan Srirattanamet --- gril/gfunc.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 gril/gfunc.h (limited to 'gril/gfunc.h') diff --git a/gril/gfunc.h b/gril/gfunc.h new file mode 100644 index 00000000..5e13b7d4 --- /dev/null +++ b/gril/gfunc.h @@ -0,0 +1,42 @@ +/* + * + * RIL library with GLib integration + * + * Copyright (C) 2008-2011 Intel Corporation. All rights reserved. + * Copyright (C) 2012 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef __GFUNC_H +#define __GFUNC_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void (*GRilDisconnectFunc)(gpointer user_data); +typedef void (*GRilReceiveFunc)(const unsigned char *data, gsize size, + gpointer user_data); +typedef void (*GRilDebugFunc)(const char *str, gpointer user_data); +typedef void (*GRilSuspendFunc)(gpointer user_data); + +#ifdef __cplusplus +} +#endif + +#endif /* __GFUNC_H */ -- cgit v1.2.3