summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-09-19 15:32:15 +0900
committerMarcel Holtmann <marcel@holtmann.org>2010-09-19 15:32:15 +0900
commitc56e896b72c73fab69cc88678ef3c09cddc499ce (patch)
tree3e3171966714596da4765c0721a338330a5deb1d
parentc2e680db0b8e9ed4a28cb5638b370dca75379e79 (diff)
downloadconnman-c56e896b72c73fab69cc88678ef3c09cddc499ce.tar.gz
connman-c56e896b72c73fab69cc88678ef3c09cddc499ce.tar.bz2
connman-c56e896b72c73fab69cc88678ef3c09cddc499ce.zip
Add skeleton for PAC runner support
-rw-r--r--Makefile.am1
-rw-r--r--Makefile.plugins12
-rwxr-xr-xbootstrap-configure1
-rw-r--r--configure.ac7
-rw-r--r--plugins/pacrunner.c39
5 files changed, 60 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 397822ea..3de71869 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -212,6 +212,7 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
--enable-ofono \
--enable-dhclient \
--enable-dnsproxy \
+ --enable-pacrunner \
--enable-google \
--enable-meego \
--enable-udev \
diff --git a/Makefile.plugins b/Makefile.plugins
index 5ce6c52e..3b3164b4 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
@@ -135,6 +135,18 @@ plugins_dnsproxy_la_LDFLAGS = $(plugin_ldflags)
endif
endif
+if PACRUNNER
+if PACRUNNER_BUILTIN
+builtin_modules += pacrunner
+builtin_sources += plugins/pacrunner.c
+else
+plugin_LTLIBRARIES += plugins/pacrunner.la
+plugin_objects += $(plugins_pacrunner_la_OBJECTS)
+plugins_pacrunner_la_CFLAGS = $(plugin_cflags)
+plugins_pacrunner_la_LDFLAGS = $(plugin_ldflags)
+endif
+endif
+
if GOOGLE
if GOOGLE_BUILTIN
builtin_modules += google
diff --git a/bootstrap-configure b/bootstrap-configure
index 10456885..bda97086 100755
--- a/bootstrap-configure
+++ b/bootstrap-configure
@@ -23,6 +23,7 @@ fi
--enable-ofono=builtin \
--enable-dhclient=builtin \
--enable-openconnect=builtin \
+ --enable-pacrunner=builtin \
--enable-dnsproxy=builtin \
--enable-google=builtin \
--enable-meego=builtin \
diff --git a/configure.ac b/configure.ac
index daffc473..b2dcc80f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -158,6 +158,13 @@ AC_ARG_ENABLE(dnsproxy,
AM_CONDITIONAL(DNSPROXY, test "${enable_dnsproxy}" != "no")
AM_CONDITIONAL(DNSPROXY_BUILTIN, test "${enable_dnsproxy}" = "builtin")
+AC_ARG_ENABLE(pacrunner,
+ AC_HELP_STRING([--enable-pacrunner], [enable PAC runner support]),
+ [enable_pacrunner=${enableval}], [enable_pacrunner="no"])
+
+AM_CONDITIONAL(PACRUNNER, test "${enable_pacrunner}" != "no")
+AM_CONDITIONAL(PACRUNNER_BUILTIN, test "${enable_pacrunner}" = "builtin")
+
AC_ARG_ENABLE(google,
AC_HELP_STRING([--enable-google], [enable Google Public DNS support]),
[enable_google=${enableval}], [enable_google="no"])
diff --git a/plugins/pacrunner.c b/plugins/pacrunner.c
new file mode 100644
index 00000000..06a309db
--- /dev/null
+++ b/plugins/pacrunner.c
@@ -0,0 +1,39 @@
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2007-2010 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 pacrunner_init(void)
+{
+ return 0;
+}
+
+static void pacrunner_exit(void)
+{
+}
+
+CONNMAN_PLUGIN_DEFINE(pacrunner, "PAC runner proxy plugin", VERSION,
+ CONNMAN_PLUGIN_PRIORITY_DEFAULT, pacrunner_init, pacrunner_exit)