Add skeleton for integration of WISPr support
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Nov 2010 19:09:19 +0000 (20:09 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Nov 2010 19:09:19 +0000 (20:09 +0100)
Makefile.am
src/connman.h
src/element.c
src/wispr.c [new file with mode: 0644]

index ac4d031..e07a499 100644 (file)
@@ -72,7 +72,7 @@ src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources) \
                        src/wifi.c src/storage.c src/dbus.c src/config.c \
                        src/technology.c src/counter.c src/location.c \
                        src/session.c src/tethering.c src/ondemand.c \
-                       src/wpad.c src/stats.c src/iptables.c
+                       src/wpad.c src/wispr.c src/stats.c src/iptables.c
 
 src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \
                                @CAPNG_LIBS@ @XTABLES_LIBS@ -lresolv -ldl
index e5276c2..69e7de4 100644 (file)
@@ -287,6 +287,9 @@ void __connman_wpad_cleanup(void);
 void __connman_wpad_start(struct connman_service *service);
 void __connman_wpad_stop(struct connman_service *service);
 
+int __connman_wispr_init(void);
+void __connman_wispr_cleanup(void);
+
 #include <connman/technology.h>
 
 void __connman_technology_list(DBusMessageIter *iter, void *user_data);
index 02e65f3..5d74bda 100644 (file)
@@ -1395,6 +1395,7 @@ void __connman_element_start(void)
        __connman_ipv4_init();
        __connman_dhcp_init();
        __connman_wpad_init();
+       __connman_wispr_init();
 
        __connman_rfkill_init();
 }
@@ -1405,6 +1406,7 @@ void __connman_element_stop(void)
 
        __connman_rfkill_cleanup();
 
+       __connman_wispr_cleanup();
        __connman_wpad_cleanup();
        __connman_dhcp_cleanup();
        __connman_ipv4_cleanup();
diff --git a/src/wispr.c b/src/wispr.c
new file mode 100644 (file)
index 0000000..41f7ca3
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ *
+ *  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
+
+#include "connman.h"
+
+int __connman_wispr_init(void)
+{
+       DBG("");
+
+       return 0;
+}
+
+void __connman_wispr_cleanup(void)
+{
+       DBG("");
+}