From b668c77874c6fed325471bdcf5954979a0d734e2 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 10 Jan 2014 11:23:33 +0100 Subject: sbus: Use constants to make dbus calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows us to remove duplicated information, and have the compiler check that when an method name is changed or removed the callers are updated. Reviewed-by: Jakub Hrozek Reviewed-by: Sumit Bose Reviewed-by: Lukáš Slebodník Reviewed-by: Simo Sorce --- src/monitor/monitor_interfaces.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/monitor/monitor_interfaces.h') diff --git a/src/monitor/monitor_interfaces.h b/src/monitor/monitor_interfaces.h index 308642f78..ef4254a5f 100644 --- a/src/monitor/monitor_interfaces.h +++ b/src/monitor/monitor_interfaces.h @@ -29,26 +29,9 @@ /*** Monitor SRV Interface ***/ #define MON_SRV_PATH "/org/freedesktop/sssd/monitor" -#define MON_SRV_INTERFACE "org.freedesktop.sssd.monitor" - -/* Monitor SRV Methods */ -#define MON_SRV_METHOD_VERSION "getVersion" -#define MON_SRV_METHOD_REGISTER "RegisterService" /*** Monitor CLI Interface ***/ #define MONITOR_PATH "/org/freedesktop/sssd/service" -#define MONITOR_INTERFACE "org.freedesktop.sssd.service" - -/* Monitor CLI Methods */ -#define MON_CLI_METHOD_IDENTITY "getIdentity" -#define MON_CLI_METHOD_PING "ping" -#define MON_CLI_METHOD_SHUTDOWN "shutDown" -#define MON_CLI_METHOD_RES_INIT "resInit" -#define MON_CLI_METHOD_OFFLINE "goOffline" /* Applicable only to providers */ -#define MON_CLI_METHOD_RESET_OFFLINE "resetOffline" /* Applicable only to providers */ -#define MON_CLI_METHOD_ROTATE "rotateLogs" -#define MON_CLI_METHOD_CLEAR_MEMCACHE "clearMemcache" -#define MON_CLI_METHOD_CLEAR_ENUM_CACHE "clearEnumCache" #define SSSD_SERVICE_PIPE "private/sbus-monitor" -- cgit