From 11c621b5ee1a0cdc27610f8b172017764acc285e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 5 Aug 2009 14:11:12 -0400 Subject: Simplify interfaces initialization Make as much as possible static, and remove use of talloc_reference and allocation/deallocation of memory when not necessary. Fix also responder use of rctx->conn, was mistakenly used for both monitor and dp connections. --- server/monitor/monitor_interfaces.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'server/monitor/monitor_interfaces.h') diff --git a/server/monitor/monitor_interfaces.h b/server/monitor/monitor_interfaces.h index 05d1bb416..5c58066d5 100644 --- a/server/monitor/monitor_interfaces.h +++ b/server/monitor/monitor_interfaces.h @@ -25,20 +25,19 @@ #define MONITOR_DBUS_INTERFACE "org.freedesktop.sssd.monitor" #define MONITOR_DBUS_PATH "/org/freedesktop/sssd/monitor" -/* Monitor Methods */ -#define MONITOR_METHOD_VERSION "getVersion" +/* Monitor SRV Methods */ +#define MON_SRV_METHOD_VERSION "getVersion" +/*** Monitor Interface ***/ -/*** Services ***/ +#define MONITOR_PATH "/org/freedesktop/sssd/service" +#define MONITOR_INTERFACE "org.freedesktop.sssd.service" -#define SERVICE_PATH "/org/freedesktop/sssd/service" -#define SERVICE_INTERFACE "org.freedesktop.sssd.service" - -/* Service Methods */ -#define SERVICE_METHOD_IDENTITY "getIdentity" -#define SERVICE_METHOD_PING "ping" -#define SERVICE_METHOD_RELOAD "reloadConfig" -#define SERVICE_METHOD_SHUTDOWN "shutDown" -#define SERVICE_METHOD_RES_INIT "resInit" +/* Monitor CLI Methods */ +#define MON_CLI_METHOD_IDENTITY "getIdentity" +#define MON_CLI_METHOD_PING "ping" +#define MON_CLI_METHOD_RELOAD "reloadConfig" +#define MON_CLI_METHOD_SHUTDOWN "shutDown" +#define MON_CLI_METHOD_RES_INIT "resInit" #define SSSD_SERVICE_PIPE "private/sbus-monitor" -- cgit