Initial commit to Gerrit
[profile/ivi/ofono.git] / gisi / pep.h
1 /*
2  *
3  *  oFono - Open Source Telephony
4  *
5  *  Copyright (C) 2009-2010  Nokia Corporation and/or its subsidiary(-ies).
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License version 2 as
9  *  published by the Free Software Foundation.
10  *
11  *  This program 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.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #ifndef __GISI_PEP_H
23 #define __GISI_PEP_H
24
25 #include "modem.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 typedef struct _GIsiPEP GIsiPEP;
32 typedef void (*GIsiPEPCallback)(GIsiPEP *pep, void *opaque);
33
34 GIsiPEP *g_isi_pep_create(GIsiModem *modem, GIsiPEPCallback cb, void *data);
35 void g_isi_pep_destroy(GIsiPEP *pep);
36 uint16_t g_isi_pep_get_object(const GIsiPEP *pep);
37 unsigned g_isi_pep_get_ifindex(const GIsiPEP *pep);
38 char *g_isi_pep_get_ifname(const GIsiPEP *pep, char *ifname);
39
40 #ifdef __cplusplus
41 }
42 #endif
43
44 #endif /* __GISI_PEP_H */