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 8264d4b..8ce2a6a 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 8786c47..5d97332 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 e64a271..74e8030 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 365b9dc..93501ca 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)