From ab792150c97bd6eba1f8cd46653f41a0c64fd765 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 7 Nov 2016 12:37:22 +0100 Subject: MONITOR: Remove deprecated pong sbus method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pong method is deprecated since we started using the watchdog. Since this is dead code, it makes sense to just remove it. Reviewed-by: Lukáš Slebodník --- src/monitor/monitor_iface.xml | 4 ---- src/monitor/monitor_iface_generated.c | 7 ------- src/monitor/monitor_iface_generated.h | 2 -- src/monitor/monitor_interfaces.h | 1 - src/monitor/monitor_sbus.c | 5 ----- 5 files changed, 19 deletions(-) (limited to 'src/monitor') diff --git a/src/monitor/monitor_iface.xml b/src/monitor/monitor_iface.xml index 5d6b16f32..585209a55 100644 --- a/src/monitor/monitor_iface.xml +++ b/src/monitor/monitor_iface.xml @@ -15,10 +15,6 @@ - - - - diff --git a/src/monitor/monitor_iface_generated.c b/src/monitor/monitor_iface_generated.c index 171cef7e6..a39f6a68a 100644 --- a/src/monitor/monitor_iface_generated.c +++ b/src/monitor/monitor_iface_generated.c @@ -36,13 +36,6 @@ const struct sbus_interface_meta mon_srv_iface_meta = { /* methods for org.freedesktop.sssd.service */ const struct sbus_method_meta mon_cli_iface__methods[] = { - { - "ping", /* name */ - NULL, /* no in_args */ - NULL, /* no out_args */ - offsetof(struct mon_cli_iface, ping), - NULL, /* no invoker */ - }, { "resInit", /* name */ NULL, /* no in_args */ diff --git a/src/monitor/monitor_iface_generated.h b/src/monitor/monitor_iface_generated.h index f93f11731..70958b9d1 100644 --- a/src/monitor/monitor_iface_generated.h +++ b/src/monitor/monitor_iface_generated.h @@ -18,7 +18,6 @@ /* constants for org.freedesktop.sssd.service */ #define MON_CLI_IFACE "org.freedesktop.sssd.service" -#define MON_CLI_IFACE_PING "ping" #define MON_CLI_IFACE_RESINIT "resInit" #define MON_CLI_IFACE_SHUTDOWN "shutDown" #define MON_CLI_IFACE_GOOFFLINE "goOffline" @@ -56,7 +55,6 @@ struct mon_srv_iface { /* vtable for org.freedesktop.sssd.service */ struct mon_cli_iface { struct sbus_vtable vtable; /* derive from sbus_vtable */ - sbus_msg_handler_fn ping; sbus_msg_handler_fn resInit; sbus_msg_handler_fn shutDown; sbus_msg_handler_fn goOffline; diff --git a/src/monitor/monitor_interfaces.h b/src/monitor/monitor_interfaces.h index 213f293cf..8a9e4fe94 100644 --- a/src/monitor/monitor_interfaces.h +++ b/src/monitor/monitor_interfaces.h @@ -38,7 +38,6 @@ int monitor_get_sbus_address(TALLOC_CTX *mem_ctx, char **address); int monitor_common_send_id(struct sbus_connection *conn, const char *name, uint16_t version); -int monitor_common_pong(struct sbus_request *dbus_req, void *data); int monitor_common_res_init(struct sbus_request *dbus_req, void *data); errno_t sss_monitor_init(TALLOC_CTX *mem_ctx, diff --git a/src/monitor/monitor_sbus.c b/src/monitor/monitor_sbus.c index 426f02997..cc25c404c 100644 --- a/src/monitor/monitor_sbus.c +++ b/src/monitor/monitor_sbus.c @@ -144,11 +144,6 @@ int monitor_common_send_id(struct sbus_connection *conn, return retval; } -int monitor_common_pong(struct sbus_request *dbus_req, void *data) -{ - return sbus_request_return_and_finish(dbus_req, DBUS_TYPE_INVALID); -} - int monitor_common_res_init(struct sbus_request *dbus_req, void *data) { int ret; -- cgit