diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-04-18 22:46:00 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-04-18 22:46:00 +0200 |
commit | e06445ba1d6d6744f22bcd9e175fad0ededc91a1 (patch) | |
tree | f1d893b9920e1e4557973851cc6a068c9b846fb2 | |
parent | f873eb00ff71c39de436f7e863acac74174a5758 (diff) | |
download | connman-e06445ba1d6d6744f22bcd9e175fad0ededc91a1.tar.gz connman-e06445ba1d6d6744f22bcd9e175fad0ededc91a1.tar.bz2 connman-e06445ba1d6d6744f22bcd9e175fad0ededc91a1.zip |
Add skeleton for Modem Manager plugin
-rwxr-xr-x | bootstrap-configure | 1 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | plugins/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/modemmgr.c | 40 |
4 files changed, 51 insertions, 0 deletions
diff --git a/bootstrap-configure b/bootstrap-configure index ac7d8bd1..49e5a640 100755 --- a/bootstrap-configure +++ b/bootstrap-configure @@ -21,6 +21,7 @@ fi --enable-ethernet \ --enable-wifi \ --enable-bluetooth \ + --enable-modemmgr \ --enable-udhcp \ --enable-dhclient \ --enable-resolvconf \ diff --git a/configure.ac b/configure.ac index 80c4611f..ba282514 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,10 @@ AC_ARG_ENABLE(bluetooth, AC_HELP_STRING([--enable-bluetooth], [enable Bluetooth support]), [enable_bluetooth=${enableval}]) AM_CONDITIONAL(BLUETOOTH, test "${enable_bluetooth}" = "yes") +AC_ARG_ENABLE(modemmgr, AC_HELP_STRING([--enable-modemmgr], + [enable Modem Manager support]), [enable_modemmgr=${enableval}]) +AM_CONDITIONAL(MODEMMGR, test "${enable_modemmgr}" = "yes") + AC_ARG_WITH(udhcpc, AC_HELP_STRING([--with-udhcpc=PROGRAM], [specify location of udhcpc binary]), [path_udhcpc=${withval}]) diff --git a/plugins/Makefile.am b/plugins/Makefile.am index df912bd1..db3977fc 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -27,6 +27,12 @@ bluetooth_la_SOURCES = bluetooth.c inet.h inet.c bluetooth_la_LIBADD = @GDBUS_LIBS@ endif +if MODEMMGR +plugin_LTLIBRARIES += modemmgr.la + +modemmgr_la_LIBADD = @GDBUS_LIBS@ +endif + if NOVATEL plugin_LTLIBRARIES += novatel.la diff --git a/plugins/modemmgr.c b/plugins/modemmgr.c new file mode 100644 index 00000000..9a226845 --- /dev/null +++ b/plugins/modemmgr.c @@ -0,0 +1,40 @@ +/* + * + * 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> +#include <connman/log.h> + +static int modemmgr_init(void) +{ + return 0; +} + +static void modemmgr_exit(void) +{ +} + +CONNMAN_PLUGIN_DEFINE(modemmgr, "Modem Manager plugin", VERSION, + CONNMAN_PLUGIN_PRIORITY_DEFAULT, modemmgr_init, modemmgr_exit) |