chiark / gitweb /
timedate: move error mapping to bus-common-errors.[ch]
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Apr 2018 05:03:25 +0000 (14:03 +0900)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/libelogind/sd-bus/bus-common-errors.c
src/libelogind/sd-bus/bus-common-errors.h

index 74e987c0084ce9ba207a3e09f568d4df334e43d6..e85434102c5cb20c2a05549ae0bffecbe3005541 100644 (file)
@@ -62,6 +62,7 @@ BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_common_errors[] = {
 
 #if 0 /// UNNEEDED by elogind
         SD_BUS_ERROR_MAP(BUS_ERROR_AUTOMATIC_TIME_SYNC_ENABLED,  EALREADY),
+        SD_BUS_ERROR_MAP(BUS_ERROR_NO_NTP_SUPPORT,               EOPNOTSUPP),
 
         SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_PROCESS,              ESRCH),
 
index 7c923360e40fd3a8680f224ceab927d3f64ed51a..7a483ce548ab066146976d389bb62fe2c82695bd 100644 (file)
@@ -60,6 +60,7 @@
 
 #if 0 /// more services unsupported by elogind
 #define BUS_ERROR_AUTOMATIC_TIME_SYNC_ENABLED "org.freedesktop.timedate1.AutomaticTimeSyncEnabled"
+#define BUS_ERROR_NO_NTP_SUPPORT "org.freedesktop.timedate1.NoNTPSupport"
 
 #define BUS_ERROR_NO_SUCH_PROCESS "org.freedesktop.systemd1.NoSuchProcess"