summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-configure1
-rw-r--r--configure.ac6
-rw-r--r--plugins/Makefile.am14
-rw-r--r--plugins/mbm.c39
4 files changed, 60 insertions, 0 deletions
diff --git a/bootstrap-configure b/bootstrap-configure
index 541d6635..236579d7 100755
--- a/bootstrap-configure
+++ b/bootstrap-configure
@@ -29,6 +29,7 @@ fi
--enable-novatel \
--enable-huawei \
--enable-hso=builtin \
+ --enable-mbm=builtin \
--enable-ppp \
--enable-udev \
--enable-iwmx \
diff --git a/configure.ac b/configure.ac
index 5f835b17..776afd06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,6 +162,12 @@ AC_ARG_ENABLE(hso,
AM_CONDITIONAL(HSO, test "${enable_hso}" != "no")
AM_CONDITIONAL(HSO_BUILTIN, test "${enable_hso}" = "builtin")
+AC_ARG_ENABLE(mbm,
+ AC_HELP_STRING([--enable-mbm], [enable MBM support]),
+ [enable_mbm=${enableval}], [enable_mbm="no"])
+AM_CONDITIONAL(MBM, test "${enable_mbm}" != "no")
+AM_CONDITIONAL(MBM_BUILTIN, test "${enable_mbm}" = "builtin")
+
AC_ARG_WITH(pppd, AC_HELP_STRING([--with-pppd=PROGRAM],
[specify location of pppd binary]), [path_pppd=${withval}])
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 8c315e58..2b92b07a 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -93,6 +93,20 @@ hso_la_CFLAGS = $(AM_CFLAGS) @GATCHAT_CFLAGS@
endif
endif
+if MBM
+if MBM_BUILTIN
+builtin_modules += mbm
+builtin_sources += mbm.c
+builtin_libadd += @GATCHAT_LIBS@
+builtin_cflags += @GATCHAT_CFLAGS@
+else
+plugin_LTLIBRARIES += mbm.la
+mbm_la_SOURCES = mbm.c
+mbm_la_LIBADD = @GATCHAT_LIBS@
+mbm_la_CFLAGS = $(AM_CFLAGS) @GATCHAT_CFLAGS@
+endif
+endif
+
if UDHCP
if UDHCP_BUILTIN
builtin_modules += udhcp
diff --git a/plugins/mbm.c b/plugins/mbm.c
new file mode 100644
index 00000000..b997b164
--- /dev/null
+++ b/plugins/mbm.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 mbm_init(void)
+{
+ return 0;
+}
+
+static void mbm_exit(void)
+{
+}
+
+CONNMAN_PLUGIN_DEFINE(mbm, "Ericsson MBM device plugin", VERSION,
+ CONNMAN_PLUGIN_PRIORITY_DEFAULT, mbm_init, mbm_exit)