2
* This file is part of oFono - Open Source Telephony
4
* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: Aki Niemi <aki.niemi@nokia.com>
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License
10
* version 2 as published by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
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
24
#define DECLARE_FAILURE(e) \
25
struct ofono_error e; \
26
e.type = OFONO_ERROR_TYPE_FAILURE; \
30
struct ofono_modem *modem;
31
struct netreg_data *netreg;
37
struct ofono_modem *modem;
41
static inline struct isi_cb_data *isi_cb_data_new(struct ofono_modem *modem,
44
struct isi_cb_data *ret;
46
ret = g_try_new0(struct isi_cb_data, 1);
56
void dump_msg(const unsigned char *msg, size_t len);