diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-10-10 18:00:32 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-10-10 18:00:32 +0200 |
commit | 818825d6dec810722cd9cdbf82fca8b62f08025d (patch) | |
tree | e9096b62a3049dfbe2cd5fbd4c68ba0d26652962 | |
parent | 2d72dfdcbbf0a12091bbeb1e53b483b5db1df7fb (diff) | |
download | pacrunner-818825d6dec810722cd9cdbf82fca8b62f08025d.tar.gz |
Add skeleton for PAC download support
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | src/download.c | 38 | ||||
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/pacrunner.h | 3 |
4 files changed, 46 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 71ed43b..1b1b4a3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,9 +17,9 @@ gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \ sbin_PROGRAMS = src/pacrunner src_pacrunner_SOURCES = $(gdbus_sources) src/pacrunner.h \ - src/main.c src/log.c \ - src/manager.c src/client.c \ - src/mozjs.c src/javascript.h + src/main.c src/log.c src/client.c \ + src/manager.c src/download.c \ + src/mozjs.c src/javascript.h src_pacrunner_LDADD = @MOZJS_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ diff --git a/src/download.c b/src/download.c new file mode 100644 index 0000000..6a8244b --- /dev/null +++ b/src/download.c @@ -0,0 +1,38 @@ +/* + * + * PACrunner - Proxy configuration daemon + * + * Copyright (C) 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 + +#include "pacrunner.h" + +int __pacrunner_download_init(void) +{ + DBG(""); + + return 0; +} + +void __pacrunner_download_cleanup(void) +{ + DBG(""); +} @@ -157,6 +157,7 @@ int main(int argc, char *argv[]) __pacrunner_log_init(option_debug, option_detach); + __pacrunner_download_init(); __pacrunner_manager_init(conn); __pacrunner_client_init(conn); __pacrunner_mozjs_init(); @@ -171,6 +172,7 @@ int main(int argc, char *argv[]) __pacrunner_mozjs_cleanup(); __pacrunner_client_cleanup(); __pacrunner_manager_cleanup(); + __pacrunner_download_cleanup(); __pacrunner_log_cleanup(); diff --git a/src/pacrunner.h b/src/pacrunner.h index 4e5288c..c96130d 100644 --- a/src/pacrunner.h +++ b/src/pacrunner.h @@ -65,6 +65,9 @@ int __pacrunner_log_init(const char *debug, gboolean detach); void __pacrunner_log_cleanup(void); +int __pacrunner_download_init(void); +void __pacrunner_download_cleanup(void); + int __pacrunner_manager_init(DBusConnection *conn); void __pacrunner_manager_cleanup(); |