From a3b0acd813164d11d5c00d943da5f51cda43df2f Mon Sep 17 00:00:00 2001 From: Bertrand Aygon Date: Fri, 5 Aug 2011 15:21:07 +0200 Subject: huaweicdmamodem: Add stub implementation --- Makefile.am | 5 ++++ drivers/huaweicdmamodem/huaweicdmamodem.c | 42 +++++++++++++++++++++++++++++++ drivers/huaweicdmamodem/huaweicdmamodem.h | 20 +++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 drivers/huaweicdmamodem/huaweicdmamodem.c create mode 100644 drivers/huaweicdmamodem/huaweicdmamodem.h diff --git a/Makefile.am b/Makefile.am index 238771c1..1c424caf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -277,6 +277,11 @@ builtin_sources += drivers/cdmamodem/cdmamodem.h \ drivers/cdmamodem/voicecall.c \ drivers/cdmamodem/devinfo.c \ drivers/cdmamodem/connman.c + +builtin_modules += huaweicdmamodem +builtin_sources += drivers/huaweicdmamodem/huaweicdmamodem.h \ + drivers/huaweicdmamodem/huaweicdmamodem.c + endif builtin_modules += g1 diff --git a/drivers/huaweicdmamodem/huaweicdmamodem.c b/drivers/huaweicdmamodem/huaweicdmamodem.c new file mode 100644 index 00000000..d9e79435 --- /dev/null +++ b/drivers/huaweicdmamodem/huaweicdmamodem.c @@ -0,0 +1,42 @@ +/* + * + * oFono - Open Source Telephony + * + * Copyright (C) 2008-2011 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 +#endif + +#define OFONO_API_SUBJECT_TO_CHANGE +#include + +#include "huaweicdmamodem.h" + +static int huaweicdmamodem_init(void) +{ + return 0; +} + +static void huaweicdmamodem_exit(void) +{ +} + +OFONO_PLUGIN_DEFINE(huaweicdmamodem, "Huawei CDMA modem driver", VERSION, + OFONO_PLUGIN_PRIORITY_DEFAULT, + huaweicdmamodem_init, huaweicdmamodem_exit) diff --git a/drivers/huaweicdmamodem/huaweicdmamodem.h b/drivers/huaweicdmamodem/huaweicdmamodem.h new file mode 100644 index 00000000..d11ddd98 --- /dev/null +++ b/drivers/huaweicdmamodem/huaweicdmamodem.h @@ -0,0 +1,20 @@ +/* + * + * oFono - Open Source Telephony + * + * Copyright (C) 2008-2011 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 + * + */ -- cgit v1.2.3