packaging: Bump to 1.17
[platform/upstream/ofono.git] / drivers / qmimodem / qmimodem.c
1 /*
2  *
3  *  oFono - Open Source Telephony
4  *
5  *  Copyright (C) 2011-2012  Intel Corporation. All rights reserved.
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 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25
26 #define OFONO_API_SUBJECT_TO_CHANGE
27 #include <ofono/plugin.h>
28
29 #include "qmimodem.h"
30
31 static int qmimodem_init(void)
32 {
33         qmi_devinfo_init();
34         qmi_netreg_init();
35         qmi_voicecall_init();
36         qmi_sim_legacy_init();
37         qmi_sim_init();
38         qmi_sms_init();
39         qmi_ussd_init();
40         qmi_gprs_init();
41         qmi_gprs_context_init();
42         qmi_radio_settings_init();
43         qmi_location_reporting_init();
44
45         return 0;
46 }
47
48 static void qmimodem_exit(void)
49 {
50         qmi_location_reporting_exit();
51         qmi_radio_settings_exit();
52         qmi_gprs_context_exit();
53         qmi_gprs_exit();
54         qmi_ussd_exit();
55         qmi_sms_exit();
56         qmi_sim_exit();
57         qmi_sim_legacy_exit();
58         qmi_voicecall_exit();
59         qmi_netreg_exit();
60         qmi_devinfo_exit();
61 }
62
63 OFONO_PLUGIN_DEFINE(qmimodem, "Qualcomm QMI modem driver", VERSION,
64                 OFONO_PLUGIN_PRIORITY_DEFAULT, qmimodem_init, qmimodem_exit)