2012-05-27 08:13:55 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* oFono - Open Source Telephony
|
|
|
|
*
|
2012-06-21 22:18:36 +00:00
|
|
|
* Copyright (C) 2011-2012 Intel Corporation. All rights reserved.
|
2012-05-27 08:13:55 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define OFONO_API_SUBJECT_TO_CHANGE
|
|
|
|
#include <ofono/plugin.h>
|
|
|
|
|
|
|
|
#include "qmimodem.h"
|
|
|
|
|
|
|
|
static int qmimodem_init(void)
|
|
|
|
{
|
2012-06-21 23:07:59 +00:00
|
|
|
qmi_devinfo_init();
|
2012-06-22 01:37:37 +00:00
|
|
|
qmi_netreg_init();
|
2012-06-25 19:11:08 +00:00
|
|
|
qmi_voicecall_init();
|
2012-06-22 00:29:16 +00:00
|
|
|
qmi_sim_legacy_init();
|
2012-06-22 20:20:11 +00:00
|
|
|
qmi_sms_init();
|
2012-06-26 03:24:33 +00:00
|
|
|
qmi_ussd_init();
|
2012-06-22 03:46:04 +00:00
|
|
|
qmi_gprs_init();
|
|
|
|
qmi_gprs_context_init();
|
2012-06-25 05:56:27 +00:00
|
|
|
qmi_radio_settings_init();
|
2012-06-22 04:08:31 +00:00
|
|
|
qmi_location_reporting_init();
|
2012-06-21 23:07:59 +00:00
|
|
|
|
2012-05-27 08:13:55 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void qmimodem_exit(void)
|
|
|
|
{
|
2012-06-22 04:08:31 +00:00
|
|
|
qmi_location_reporting_exit();
|
2012-06-25 05:56:27 +00:00
|
|
|
qmi_radio_settings_exit();
|
2012-06-22 03:46:04 +00:00
|
|
|
qmi_gprs_context_exit();
|
|
|
|
qmi_gprs_exit();
|
2012-06-26 03:24:33 +00:00
|
|
|
qmi_ussd_exit();
|
2012-06-22 20:20:11 +00:00
|
|
|
qmi_sms_exit();
|
2012-06-22 00:29:16 +00:00
|
|
|
qmi_sim_legacy_exit();
|
2012-06-25 19:11:08 +00:00
|
|
|
qmi_voicecall_exit();
|
2012-06-22 01:37:37 +00:00
|
|
|
qmi_netreg_exit();
|
2012-06-21 23:07:59 +00:00
|
|
|
qmi_devinfo_exit();
|
2012-05-27 08:13:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
OFONO_PLUGIN_DEFINE(qmimodem, "Qualcomm QMI modem driver", VERSION,
|
|
|
|
OFONO_PLUGIN_PRIORITY_DEFAULT, qmimodem_init, qmimodem_exit)
|