Add skeleton for plugin to handle static modem configurations
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 2 Sep 2009 21:40:50 +0000 (14:40 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 2 Sep 2009 21:41:47 +0000 (14:41 -0700)
Makefile.am
plugins/modemconf.c [new file with mode: 0644]

index 3d4c106..99371ae 100644 (file)
@@ -81,6 +81,9 @@ builtin_sources += $(gatchat_sources) drivers/atmodem/at.h \
                                drivers/atmodem/ssn.c \
                                drivers/atmodem/devinfo.c
 
+builtin_modules += modemconf
+builtin_sources += plugins/modemconf.c
+
 builtin_sources += plugins/chat.h plugins/chat.c
 
 builtin_modules += generic_at
diff --git a/plugins/modemconf.c b/plugins/modemconf.c
new file mode 100644 (file)
index 0000000..5e53b51
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ *
+ *  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
+
+#define OFONO_API_SUBJECT_TO_CHANGE
+#include <ofono/plugin.h>
+
+static int modemconf_init(void)
+{
+       return 0;
+}
+
+static void modemconf_exit(void)
+{
+}
+
+OFONO_PLUGIN_DEFINE(modemconf, "Static modem configuration", VERSION,
+               OFONO_PLUGIN_PRIORITY_DEFAULT, modemconf_init, modemconf_exit)