diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-08-04 19:27:32 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-04 19:27:32 -0700 |
commit | 2690cb17a709c408105c3bb0e5815e5cb0aed818 (patch) | |
tree | 2abbc9085f7c6a4c982001d32b7aa8ae905b0879 | |
parent | 57f6fa6e1597728e0a62fa5d810352ac036aa7b2 (diff) | |
download | connman-2690cb17a709c408105c3bb0e5815e5cb0aed818.tar.gz connman-2690cb17a709c408105c3bb0e5815e5cb0aed818.tar.bz2 connman-2690cb17a709c408105c3bb0e5815e5cb0aed818.zip |
Add skeleton for task handling framework
-rw-r--r-- | include/Makefile.am | 2 | ||||
-rw-r--r-- | include/task.h | 39 | ||||
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/connman.h | 2 | ||||
-rw-r--r-- | src/task.c | 26 |
5 files changed, 69 insertions, 2 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 0e82fa44..ea364d36 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -6,7 +6,7 @@ include_HEADERS = types.h log.h plugin.h security.h notifier.h \ nodist_include_HEADERS = version.h -noinst_HEADERS = driver.h element.h property.h rtnl.h wifi.h \ +noinst_HEADERS = driver.h element.h property.h rtnl.h wifi.h task.h \ dbus.h rfkill.h option.h resolver.h ipconfig.h \ profile.h service.h provider.h diff --git a/include/task.h b/include/task.h new file mode 100644 index 00000000..e31a4c37 --- /dev/null +++ b/include/task.h @@ -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 + * + */ + +#ifndef __CONNMAN_TASK_H +#define __CONNMAN_TASK_H + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * SECTION:task + * @title: Task premitives + * @short_description: Functions for handling tasks + */ + +#ifdef __cplusplus +} +#endif + +#endif /* __CONNMAN_TASK_H */ diff --git a/src/Makefile.am b/src/Makefile.am index ff0307b4..f8e80f29 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,7 +8,7 @@ endif sbin_PROGRAMS = connmand connmand_SOURCES = main.c connman.h log.c selftest.c error.c plugin.c \ - element.c device.c network.c connection.c \ + task.c element.c device.c network.c connection.c \ manager.c profile.c service.c agent.c notifier.c \ provider.c security.c resolver.c ipconfig.c ipv4.c \ storage.c rfkill.c rtnl.c inet.c wifi.c dbus.c diff --git a/src/connman.h b/src/connman.h index 57b52dea..39efb97a 100644 --- a/src/connman.h +++ b/src/connman.h @@ -79,6 +79,8 @@ gboolean __connman_debug_enabled(void); int __connman_plugin_init(const char *pattern, const char *exclude); void __connman_plugin_cleanup(void); +#include <connman/task.h> + #include <connman/security.h> int __connman_security_check_privilege(DBusMessage *message, diff --git a/src/task.c b/src/task.c new file mode 100644 index 00000000..97a6592a --- /dev/null +++ b/src/task.c @@ -0,0 +1,26 @@ +/* + * + * 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 + +#include "connman.h" |