summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-04-18 11:00:43 -0700
committerMarcel Holtmann <marcel@holtmann.org>2011-04-18 11:00:43 -0700
commit8d79dd2a0dbfc48b5f91fc1c376514692567e9b2 (patch)
tree0cd70f6eda0965a0479320c48818cd408c55a9bc
parentfbc9569af18f4c6fd46413f32c57b05c4602393e (diff)
downloadconnman-8d79dd2a0dbfc48b5f91fc1c376514692567e9b2.tar.gz
connman-8d79dd2a0dbfc48b5f91fc1c376514692567e9b2.tar.bz2
connman-8d79dd2a0dbfc48b5f91fc1c376514692567e9b2.zip
core: Add skeleton for clock interfaces
-rw-r--r--Makefile.am2
-rw-r--r--src/clock.c38
-rw-r--r--src/connman.h3
-rw-r--r--src/main.c2
4 files changed, 44 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 23805e75..74ac21ff 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,7 +70,7 @@ src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources) \
src/main.c src/connman.h src/log.c \
src/error.c src/plugin.c src/task.c src/element.c \
src/device.c src/network.c src/connection.c \
- src/manager.c src/profile.c src/service.c \
+ src/manager.c src/clock.c src/profile.c src/service.c \
src/agent.c src/notifier.c src/provider.c \
src/resolver.c src/ipconfig.c src/detect.c src/inet.c \
src/dhcp.c src/rtnl.c src/proxy.c \
diff --git a/src/clock.c b/src/clock.c
new file mode 100644
index 00000000..3a59f311
--- /dev/null
+++ b/src/clock.c
@@ -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_clock_init(void)
+{
+ DBG("");
+
+ return 0;
+}
+
+void __connman_clock_cleanup(void)
+{
+ DBG("");
+}
diff --git a/src/connman.h b/src/connman.h
index 8adf9096..4b226bf5 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -54,6 +54,9 @@ DBusMessage *__connman_error_invalid_property(DBusMessage *msg);
int __connman_manager_init(void);
void __connman_manager_cleanup(void);
+int __connman_clock_init(void);
+void __connman_clock_cleanup(void);
+
int __connman_agent_init(void);
void __connman_agent_cleanup(void);
diff --git a/src/main.c b/src/main.c
index 18b6bc3c..1e87ac26 100644
--- a/src/main.c
+++ b/src/main.c
@@ -275,6 +275,7 @@ int main(int argc, char *argv[])
__connman_profile_init();
__connman_config_init();
__connman_stats_init();
+ __connman_clock_init();
__connman_resolver_init(option_dnsproxy);
__connman_ipconfig_init();
@@ -316,6 +317,7 @@ int main(int argc, char *argv[])
__connman_ipconfig_cleanup();
__connman_resolver_cleanup();
+ __connman_clock_cleanup();
__connman_stats_cleanup();
__connman_config_cleanup();
__connman_profile_cleanup();