diff options
-rw-r--r-- | include/Makefile.am | 2 | ||||
-rw-r--r-- | include/provider.h | 39 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/connman.h | 2 | ||||
-rw-r--r-- | src/provider.c | 26 |
5 files changed, 70 insertions, 3 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 6f2218c8..0e82fa44 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -8,7 +8,7 @@ nodist_include_HEADERS = version.h noinst_HEADERS = driver.h element.h property.h rtnl.h wifi.h \ dbus.h rfkill.h option.h resolver.h ipconfig.h \ - profile.h service.h + profile.h service.h provider.h MAINTAINERCLEANFILES = Makefile.in diff --git a/include/provider.h b/include/provider.h new file mode 100644 index 00000000..7e5d618e --- /dev/null +++ b/include/provider.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_PROVIDER_H +#define __CONNMAN_PROVIDER_H + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * SECTION:provider + * @title: Provider premitives + * @short_description: Functions for handling providers + */ + +#ifdef __cplusplus +} +#endif + +#endif /* __CONNMAN_PROVIDER_H */ diff --git a/src/Makefile.am b/src/Makefile.am index d8b9e8d6..ff0307b4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,8 +10,8 @@ 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 \ manager.c profile.c service.c agent.c notifier.c \ - security.c resolver.c ipconfig.c rfkill.c \ - storage.c ipv4.c rtnl.c inet.c wifi.c dbus.c + provider.c security.c resolver.c ipconfig.c ipv4.c \ + storage.c rfkill.c rtnl.c inet.c wifi.c dbus.c if UDEV connmand_SOURCES += udev.c diff --git a/src/connman.h b/src/connman.h index 80134dbf..57b52dea 100644 --- a/src/connman.h +++ b/src/connman.h @@ -314,6 +314,8 @@ int __connman_service_disconnect(struct connman_service *service); int __connman_service_create_and_connect(DBusMessage *msg); void __connman_service_auto_connect(void); +#include <connman/provider.h> + #include <connman/notifier.h> int __connman_notifier_init(void); diff --git a/src/provider.c b/src/provider.c new file mode 100644 index 00000000..97a6592a --- /dev/null +++ b/src/provider.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" |