core: Add skeleton for clock interfaces
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 18 Apr 2011 18:00:43 +0000 (11:00 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 18 Apr 2011 18:00:43 +0000 (11:00 -0700)
Makefile.am
src/clock.c [new file with mode: 0644]
src/connman.h
src/main.c

index 23805e7..74ac21f 100644 (file)
@@ -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 (file)
index 0000000..3a59f31
--- /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_clock_init(void)
+{
+       DBG("");
+
+       return 0;
+}
+
+void __connman_clock_cleanup(void)
+{
+       DBG("");
+}
index 8adf909..4b226bf 100644 (file)
@@ -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);
 
index 18b6bc3..1e87ac2 100644 (file)
@@ -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();