summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel.holtmann@intel.com>2009-05-13 11:21:13 -0700
committerMarcel Holtmann <marcel.holtmann@intel.com>2009-05-13 11:21:13 -0700
commit36eeffeede5530b9a340279f518fa3665c4ab8ff (patch)
tree10f731d642e608d84cc3c51dbb553844345385f9
parentb77f2fee1e007ba0d031ab667371c1b18e169861 (diff)
downloadofono-36eeffeede5530b9a340279f518fa3665c4ab8ff.tar.bz2
Add skeleton for PhoNet modem driver
-rw-r--r--drivers/Makefile.am3
-rw-r--r--drivers/phonet/phonet.c42
2 files changed, 45 insertions, 0 deletions
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 <config.h>
+#endif
+
+#include <ofono/plugin.h>
+#include <ofono/log.h>
+
+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)