From: Daniel Wagner <[email protected]>
---
Makefile.am | 2 +-
src/cgroup.c | 38 ++++++++++++++++++++++++++++++++++++++
src/connman.h | 3 +++
src/main.c | 2 ++
4 files changed, 44 insertions(+), 1 deletion(-)
create mode 100644 src/cgroup.c
diff --git a/Makefile.am b/Makefile.am
index ca0cf0b..94ddc6e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -82,7 +82,7 @@ src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources)
$(gweb_sources) \
src/technology.c src/counter.c src/ntp.c \
src/session.c src/tethering.c src/wpad.c src/wispr.c \
src/stats.c src/iptables.c src/dnsproxy.c src/6to4.c \
- src/ippool.c src/bridge.c src/nat.c
+ src/ippool.c src/bridge.c src/nat.c src/cgroup.c
src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \
@XTABLES_LIBS@ @GNUTLS_LIBS@ -lresolv -ldl
diff --git a/src/cgroup.c b/src/cgroup.c
new file mode 100644
index 0000000..712274a
--- /dev/null
+++ b/src/cgroup.c
@@ -0,0 +1,38 @@
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2012 BMW Car IT GmbH. 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_cgroup_init(void)
+{
+ DBG("");
+
+ return 0;
+}
+
+void __connman_cgroup_cleanup(void)
+{
+ DBG("");
+}
diff --git a/src/connman.h b/src/connman.h
index 6726078..7eba662 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -842,3 +842,6 @@ void __connman_nat_cleanup(void);
int __connman_nat_enable(const char *name, const char *address,
unsigned char prefixlen);
void __connman_nat_disable(const char *name);
+
+int __connman_cgroup_init(void);
+void __connman_cgroup_cleanup(void);
diff --git a/src/main.c b/src/main.c
index 5c206e7..257df33 100644
--- a/src/main.c
+++ b/src/main.c
@@ -513,6 +513,7 @@ int main(int argc, char *argv[])
g_key_file_free(config);
__connman_storage_migrate();
+ __connman_cgroup_init();
__connman_technology_init();
__connman_notifier_init();
__connman_service_init();
@@ -591,6 +592,7 @@ int main(int argc, char *argv[])
__connman_ipconfig_cleanup();
__connman_notifier_cleanup();
__connman_technology_cleanup();
+ __connman_cgroup_cleanup();
__connman_dbus_cleanup();
--
1.7.12.rc1.16.g05a20c8
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman