Add skeleton for PAC runner support
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 19 Sep 2010 06:32:15 +0000 (15:32 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 19 Sep 2010 06:32:15 +0000 (15:32 +0900)
Makefile.am
Makefile.plugins
bootstrap-configure
configure.ac
plugins/pacrunner.c [new file with mode: 0644]

index 397822e..3de7186 100644 (file)
@@ -212,6 +212,7 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
                                --enable-ofono \
                                --enable-dhclient \
                                --enable-dnsproxy \
+                               --enable-pacrunner \
                                --enable-google \
                                --enable-meego \
                                --enable-udev \
index 5ce6c52..3b3164b 100644 (file)
@@ -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
index 1045688..bda9708 100755 (executable)
@@ -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 \
index daffc47..b2dcc80 100644 (file)
@@ -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 (file)
index 0000000..06a309d
--- /dev/null
@@ -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)