1.2.5
by Sebastien Bacher
Import upstream version 0.23 |
1 |
/*
|
1.3.1
by Jonny Lamb
Import upstream version 0.36 |
2 |
*
|
3 |
* oFono - Open Source Telephony
|
|
4 |
*
|
|
1.4.2
by Hector Oron
Import upstream version 1.6 |
5 |
* Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
|
1.3.1
by Jonny Lamb
Import upstream version 0.36 |
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
|
|
1.2.5
by Sebastien Bacher
Import upstream version 0.23 |
19 |
*
|
20 |
*/
|
|
21 |
||
22 |
#ifndef __GISI_SERVER_H
|
|
23 |
#define __GISI_SERVER_H
|
|
24 |
||
25 |
#ifdef __cplusplus
|
|
26 |
extern "C" { |
|
27 |
#endif
|
|
28 |
||
29 |
#include <stdint.h> |
|
1.4.1
by Jonny Lamb
Import upstream version 0.53 |
30 |
#include <sys/uio.h> |
31 |
||
32 |
#include "message.h" |
|
33 |
#include "modem.h" |
|
1.2.5
by Sebastien Bacher
Import upstream version 0.23 |
34 |
|
35 |
struct _GIsiServer; |
|
36 |
typedef struct _GIsiServer GIsiServer; |
|
37 |
||
38 |
GIsiServer *g_isi_server_create(GIsiModem *modem, uint8_t resource, |
|
1.4.1
by Jonny Lamb
Import upstream version 0.53 |
39 |
GIsiVersion *version); |
1.2.5
by Sebastien Bacher
Import upstream version 0.23 |
40 |
uint8_t g_isi_server_resource(GIsiServer *server); |
1.4.1
by Jonny Lamb
Import upstream version 0.53 |
41 |
GIsiModem *g_isi_server_modem(GIsiServer *server); |
1.2.5
by Sebastien Bacher
Import upstream version 0.23 |
42 |
void g_isi_server_destroy(GIsiServer *server); |
43 |
||
1.4.1
by Jonny Lamb
Import upstream version 0.53 |
44 |
int g_isi_server_send(GIsiServer *server, const GIsiMessage *req, |
45 |
const void *__restrict data, size_t len); |
|
46 |
||
47 |
int g_isi_server_vsend(GIsiServer *server, const GIsiMessage *req, |
|
48 |
const struct iovec *iov, size_t iovlen); |
|
49 |
||
50 |
GIsiPending *g_isi_server_handle(GIsiServer *server, uint8_t type, |
|
51 |
GIsiNotifyFunc notify, void *data); |
|
1.2.5
by Sebastien Bacher
Import upstream version 0.23 |
52 |
|
53 |
#ifdef __cplusplus
|
|
54 |
}
|
|
55 |
#endif
|
|
56 |
||
57 |
#endif /* __GISI_SERVER_H */ |