2009-05-11 05:55:11 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* oFono - Open Source Telephony
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008-2009 Intel Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
2009-05-11 06:39:27 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <gatchat.h>
|
|
|
|
|
2009-08-25 06:49:40 +00:00
|
|
|
#define OFONO_API_SUBJECT_TO_CHANGE
|
2009-05-11 05:55:11 +00:00
|
|
|
#include <ofono/plugin.h>
|
2009-09-04 19:01:32 +00:00
|
|
|
#include <ofono/types.h>
|
2009-05-11 06:39:27 +00:00
|
|
|
|
2009-09-04 19:05:15 +00:00
|
|
|
#include "atmodem.h"
|
2009-05-11 06:39:27 +00:00
|
|
|
|
2009-05-11 05:55:11 +00:00
|
|
|
static int atmodem_init(void)
|
|
|
|
{
|
2009-08-19 22:22:57 +00:00
|
|
|
at_voicecall_init();
|
2009-08-20 17:45:53 +00:00
|
|
|
at_devinfo_init();
|
2009-08-12 21:55:26 +00:00
|
|
|
at_call_barring_init();
|
2009-08-13 15:59:51 +00:00
|
|
|
at_call_forwarding_init();
|
2009-08-13 17:59:26 +00:00
|
|
|
at_call_meter_init();
|
2009-08-13 20:00:52 +00:00
|
|
|
at_call_settings_init();
|
2009-08-13 21:40:08 +00:00
|
|
|
at_phonebook_init();
|
2009-08-14 23:51:36 +00:00
|
|
|
at_ssn_init();
|
2009-08-17 18:46:34 +00:00
|
|
|
at_ussd_init();
|
2009-08-18 03:42:17 +00:00
|
|
|
at_sms_init();
|
2009-08-18 22:05:50 +00:00
|
|
|
at_sim_init();
|
2009-08-19 17:10:44 +00:00
|
|
|
at_netreg_init();
|
2009-09-10 21:11:08 +00:00
|
|
|
at_cbs_init();
|
2009-09-29 19:29:45 +00:00
|
|
|
at_call_volume_init();
|
2009-10-12 21:35:59 +00:00
|
|
|
at_data_connection_init();
|
2009-08-12 21:55:26 +00:00
|
|
|
|
2009-05-11 05:55:11 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void atmodem_exit(void)
|
|
|
|
{
|
2009-08-18 22:05:50 +00:00
|
|
|
at_sim_exit();
|
2009-08-18 03:42:17 +00:00
|
|
|
at_sms_exit();
|
2009-08-17 18:46:34 +00:00
|
|
|
at_ussd_exit();
|
2009-08-14 23:51:36 +00:00
|
|
|
at_ssn_exit();
|
2009-08-13 21:40:08 +00:00
|
|
|
at_phonebook_exit();
|
2009-08-13 20:00:52 +00:00
|
|
|
at_call_settings_exit();
|
2009-08-13 17:59:26 +00:00
|
|
|
at_call_meter_exit();
|
2009-08-13 15:59:51 +00:00
|
|
|
at_call_forwarding_exit();
|
2009-08-12 21:55:26 +00:00
|
|
|
at_call_barring_exit();
|
2009-08-19 17:10:44 +00:00
|
|
|
at_netreg_exit();
|
2009-08-20 17:45:53 +00:00
|
|
|
at_devinfo_exit();
|
2009-08-19 22:22:57 +00:00
|
|
|
at_voicecall_exit();
|
2009-09-10 21:11:08 +00:00
|
|
|
at_cbs_exit();
|
2009-09-29 19:29:45 +00:00
|
|
|
at_call_volume_exit();
|
2009-10-12 21:35:59 +00:00
|
|
|
at_data_connection_exit();
|
2009-05-11 05:55:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
OFONO_PLUGIN_DEFINE(atmodem, "AT modem driver", VERSION,
|
|
|
|
OFONO_PLUGIN_PRIORITY_DEFAULT, atmodem_init, atmodem_exit)
|