summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--Makefile.plugins12
-rwxr-xr-xbootstrap-configure1
-rw-r--r--configure.ac6
-rw-r--r--plugins/moblin.c39
5 files changed, 59 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 8264d4b0..8ce2a6a9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -161,6 +161,7 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
--enable-resolvconf \
--enable-dnsproxy \
--enable-google \
+ --enable-moblin \
--enable-hso \
--enable-mbm \
--enable-udev \
diff --git a/Makefile.plugins b/Makefile.plugins
index 8786c473..5d973320 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
@@ -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
diff --git a/bootstrap-configure b/bootstrap-configure
index e64a271c..74e80305 100755
--- a/bootstrap-configure
+++ b/bootstrap-configure
@@ -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 \
diff --git a/configure.ac b/configure.ac
index 365b9dc4..93501ca6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
index 00000000..a45b73d9
--- /dev/null
+++ b/plugins/moblin.c
@@ -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)