From 36eeffeede5530b9a340279f518fa3665c4ab8ff Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 13 May 2009 11:21:13 -0700 Subject: [PATCH] Add skeleton for PhoNet modem driver --- drivers/Makefile.am | 3 +++ drivers/phonet/phonet.c | 42 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 drivers/phonet/phonet.c diff --git a/drivers/Makefile.am b/drivers/Makefile.am index 94928c7c..ad8eaba1 100644 --- a/drivers/Makefile.am +++ b/drivers/Makefile.am @@ -11,6 +11,9 @@ builtin_sources += atmodem/main.c atmodem/at.h \ atmodem/network-registration.c \ atmodem/ussd.c atmodem/voicecall.c +builtin_modules += phonet +builtin_sources += phonet/phonet.c + noinst_LTLIBRARIES = libbuiltin.la libbuiltin_la_SOURCES = $(builtin_sources) diff --git a/drivers/phonet/phonet.c b/drivers/phonet/phonet.c new file mode 100644 index 00000000..05b01474 --- /dev/null +++ b/drivers/phonet/phonet.c @@ -0,0 +1,42 @@ +/* + * + * 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 +#endif + +#include +#include + +static int phonet_init(void) +{ + DBG(""); + + return 0; +} + +static void phonet_exit(void) +{ + DBG(""); +} + +OFONO_PLUGIN_DEFINE(phonet, "PhoNet modem driver", VERSION, + OFONO_PLUGIN_PRIORITY_DEFAULT, phonet_init, phonet_exit)