From 9dc8fb26405938834b13971c3188f4f52bb8b90d Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 18 Jun 2024 11:19:44 +0200 Subject: Generate path configuration file --- src/timedate.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/timedate.h') diff --git a/src/timedate.h b/src/timedate.h index 82336de..49883f9 100644 --- a/src/timedate.h +++ b/src/timedate.h @@ -20,17 +20,13 @@ #include #include #include - -#define BUS_NAME "org.freedesktop.timedate1" +#include "resources.h" namespace dlackware::timedate { constexpr const char *bus_path = "/org/freedesktop/timedate1"; - constexpr const char *zoneinfo_database = "/usr/share/zoneinfo"; - constexpr const char *introspection_xml = "/usr/share/dbus-1/interfaces/org.freedesktop.timedate1.xml"; - - constexpr const gint32 usec_per_sec = 1000000ULL; - constexpr const gint32 nsec_per_usec = 1000ULL; + constexpr const std::string_view bus_name = "org.freedesktop.timedate1"; + constexpr const std::string_view zoneinfo_database = "/usr/share/zoneinfo"; // Returns the system time zone. Glib::ustring timezone(); -- cgit v1.2.3