aboutsummaryrefslogtreecommitdiff
path: root/src/service.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-17 09:06:02 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-17 09:06:02 -0500
commit72f23220db542cb8e41e9492528e79082c916804 (patch)
tree0ec9b3df80e55a3686d06bd9595c77a4a008f41f /src/service.h
parent49ee32fefe869a778f39f88a936f546ef2c68737 (diff)
downloadayatana-indicator-datetime-72f23220db542cb8e41e9492528e79082c916804.tar.gz
ayatana-indicator-datetime-72f23220db542cb8e41e9492528e79082c916804.tar.bz2
ayatana-indicator-datetime-72f23220db542cb8e41e9492528e79082c916804.zip
in service.c, replace all calls to time(NULL) and g_date_time_new_now_local() with a call to the new 'indicator_datetime_service_get_localtime()' func. This is currently a passthrough to _new_now_local(), but we'll need this control point to override the system time in unit testing
Diffstat (limited to 'src/service.h')
-rw-r--r--src/service.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/service.h b/src/service.h
index 47dd937..b8c9bcd 100644
--- a/src/service.h
+++ b/src/service.h
@@ -64,6 +64,8 @@ GType indicator_datetime_service_get_type (void);
IndicatorDatetimeService * indicator_datetime_service_new (gboolean replace);
+GDateTime * indicator_datetime_service_get_localtime (IndicatorDatetimeService * service);
+
G_END_DECLS
#endif /* __INDICATOR_DATETIME_SERVICE_H__ */