~rsalveti/phablet-extras/ofono_data_state_tracking

« back to all changes in this revision

Viewing changes to gril/grilreply.h

[gril/rilmodem] Re-factor gprs-context code to facilitate unit testing.

Approved by Ricardo Salveti, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 *  RIL library with GLib integration
 
4
 *
 
5
 *  Copyright (C) 2008-2011  Intel Corporation. All rights reserved.
 
6
 *  Copyright (C) 2012-2013  Canonical Ltd.
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License version 2 as
 
10
 *  published by the Free Software Foundation.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef __GRILREPLY_H
 
24
#define __GRILREPLY_H
 
25
 
 
26
#include <ofono/types.h>
 
27
 
 
28
#include "gril.h"
 
29
 
 
30
#ifdef __cplusplus
 
31
extern "C" {
 
32
#endif
 
33
 
 
34
struct reply_setup_data_call {
 
35
        guint version;
 
36
        guint status;
 
37
        gint cid;
 
38
        guint retry_time;
 
39
        guint active;
 
40
        guint protocol;
 
41
        gchar *ifname;
 
42
        gchar **dns_addresses;
 
43
        gchar **gateways;
 
44
        gchar **ip_addrs;
 
45
};
 
46
 
 
47
void g_ril_reply_free_setup_data_call(struct reply_setup_data_call *reply);
 
48
 
 
49
struct reply_setup_data_call *g_ril_reply_parse_data_call(GRil *gril,
 
50
                                                        struct ril_msg *message,
 
51
                                                        struct ofono_error *error);
 
52
 
 
53
#ifdef __cplusplus
 
54
}
 
55
#endif
 
56
 
 
57
#endif /* __GRILREPLY_H */