From e8797320e8cf680e9c84b5462f0ba9c58a05b46e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 18 Apr 2011 13:05:52 -0700 Subject: [PATCH] core: Add skeleton for timezone lookup --- Makefile.am | 3 ++- src/connman.h | 2 ++ src/timezone.c | 31 +++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/timezone.c diff --git a/Makefile.am b/Makefile.am index 74ac21f..841b9a7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -70,7 +70,8 @@ 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/clock.c src/profile.c src/service.c \ + src/manager.c src/profile.c src/service.c \ + src/clock.c src/timezone.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/connman.h b/src/connman.h index 4b226bf..824d31d 100644 --- a/src/connman.h +++ b/src/connman.h @@ -57,6 +57,8 @@ void __connman_manager_cleanup(void); int __connman_clock_init(void); void __connman_clock_cleanup(void); +char *__connman_timezone_lookup(void); + int __connman_agent_init(void); void __connman_agent_cleanup(void); diff --git a/src/timezone.c b/src/timezone.c new file mode 100644 index 0000000..339542e --- /dev/null +++ b/src/timezone.c @@ -0,0 +1,31 @@ +/* + * + * 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 +#endif + +#include "connman.h" + +char *__connman_timezone_lookup(void) +{ + return NULL; +} -- 2.7.4