summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-05-29 11:04:29 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-05-29 11:04:29 +0200
commit99e2ce4aae8dcfa02a4c772053396177648bdebf (patch)
tree506289701d5ab90dd5bea75c1d9d57b685f31667
parent0660600746db49600bdf10d96835abe9aeee5ac1 (diff)
downloadconnman-99e2ce4aae8dcfa02a4c772053396177648bdebf.tar.gz
connman-99e2ce4aae8dcfa02a4c772053396177648bdebf.tar.bz2
connman-99e2ce4aae8dcfa02a4c772053396177648bdebf.zip
Add skeleton for new RFKILL interface
-rw-r--r--include/Makefile.am2
-rw-r--r--include/rfkill.h33
-rw-r--r--src/Makefile.am4
-rw-r--r--src/connman.h2
-rw-r--r--src/rfkill.c26
5 files changed, 64 insertions, 3 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 345ff04b..b887c7cc 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -7,7 +7,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 ipv4.h rtnl.h dbus.h \
- resolver.h ipconfig.h service.h option.h
+ rfkill.h resolver.h ipconfig.h service.h option.h
MAINTAINERCLEANFILES = Makefile.in
diff --git a/include/rfkill.h b/include/rfkill.h
new file mode 100644
index 00000000..fc8848c1
--- /dev/null
+++ b/include/rfkill.h
@@ -0,0 +1,33 @@
+/*
+ *
+ * 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_RFKILL_H
+#define __CONNMAN_RFKILL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CONNMAN_RFKILL_H */
diff --git a/src/Makefile.am b/src/Makefile.am
index 286a020e..4414ec28 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,8 +9,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 \
- security.c resolver.c ipconfig.c notifier.c \
+ manager.c profile.c service.c agent.c notifier.c \
+ security.c resolver.c ipconfig.c rfkill.c \
storage.c ipv4.c detect.c rtnl.c inet.c dbus.c
if UDEV
diff --git a/src/connman.h b/src/connman.h
index 7f85da2d..98014b8f 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -91,6 +91,8 @@ enum connman_ipv4_method __connman_ipv4_string2method(const char *method);
#include <connman/inet.h>
+#include <connman/rfkill.h>
+
#include <connman/ipconfig.h>
#include <connman/resolver.h>
diff --git a/src/rfkill.c b/src/rfkill.c
new file mode 100644
index 00000000..97a6592a
--- /dev/null
+++ b/src/rfkill.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"