Add plugin for Moblin specific features
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Dec 2009 05:00:27 +0000 (06:00 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Dec 2009 05:00:27 +0000 (06:00 +0100)
Makefile.am
Makefile.plugins
bootstrap-configure
configure.ac
plugins/moblin.c [new file with mode: 0644]

index 8264d4b0ae0b4071cf7c2a669b84e7fa42530caf..8ce2a6a95531d3d7b87280552325598dc65f075a 100644 (file)
@@ -161,6 +161,7 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
                                --enable-resolvconf \
                                --enable-dnsproxy \
                                --enable-google \
+                               --enable-moblin \
                                --enable-hso \
                                --enable-mbm \
                                --enable-udev \
index 8786c473ff4185519b8b65a1b0ae2c2ad623e5e9..5d9733204df9cae2c86fe52c6f70c01efbafbf84 100644 (file)
@@ -190,6 +190,18 @@ plugins_google_la_LDFLAGS = $(plugin_ldflags)
 endif
 endif
 
+if MOBLIN
+if MOBLIN_BUILTIN
+builtin_modules += moblin
+builtin_sources += plugins/moblin.c
+else
+plugin_LTLIBRARIES += plugins/moblin.la
+plugin_objects += $(plugins_moblin_la_OBJECTS)
+plugins_moblin_la_CFLAGS = $(plugin_cflags)
+plugins_moblin_la_LDFLAGS = $(plugin_ldflags)
+endif
+endif
+
 if POLKIT
 if POLKIT_BUILTIN
 builtin_modules += polkit
index e64a271c3ad110dc1257ec26758937fa697ea9b5..74e8030589e47ee7103bf2c6bfb3f8263aa33982 100755 (executable)
@@ -27,6 +27,7 @@ fi
                --enable-resolvconf=builtin \
                --enable-dnsproxy=builtin \
                --enable-google=builtin \
+               --enable-moblin=builtin \
                --enable-hso=builtin \
                --enable-mbm=builtin \
                --enable-iwmx \
index 365b9dc466afd61221e34674dc1381a2edcb937b..93501ca605f563eb2d297c9241cd65c0663e7782 100644 (file)
@@ -185,6 +185,12 @@ AC_ARG_ENABLE(google,
 AM_CONDITIONAL(GOOGLE, test "${enable_google}" != "no")
 AM_CONDITIONAL(GOOGLE_BUILTIN, test "${enable_google}" = "builtin")
 
+AC_ARG_ENABLE(moblin,
+       AC_HELP_STRING([--enable-moblin], [enable Moblin features support]),
+                       [enable_moblin=${enableval}], [enable_moblin="no"])
+AM_CONDITIONAL(MOBLIN, test "${enable_moblin}" != "no")
+AM_CONDITIONAL(MOBLIN_BUILTIN, test "${enable_moblin}" = "builtin")
+
 AC_ARG_ENABLE(hso,
        AC_HELP_STRING([--enable-hso], [enable HSO support]),
                        [enable_hso=${enableval}], [enable_hso="no"])
diff --git a/plugins/moblin.c b/plugins/moblin.c
new file mode 100644 (file)
index 0000000..a45b73d
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ *
+ *  Connection Manager
+ *
+ *  Copyright (C) 2007-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 CONNMAN_API_SUBJECT_TO_CHANGE
+#include <connman/plugin.h>
+
+static int moblin_init(void)
+{
+       return 0;
+}
+
+static void moblin_exit(void)
+{
+}
+
+CONNMAN_PLUGIN_DEFINE(moblin, "Moblin features plugin", VERSION,
+                       CONNMAN_PLUGIN_PRIORITY_LOW, moblin_init, moblin_exit)