From b76419cf8830440b46c20a15585562343c7b1924 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 25 Jun 2014 12:33:03 +0200 Subject: IFP: Provide a SBUS method to reconnect to sysbus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduces a new method implemented only by the IFP responder. When this method is received, the responder attempts to reconnect to the system bus, if not connected already. Reviewed-by: Pavel Březina Reviewed-by: Pavel Reichl --- src/monitor/monitor_iface.xml | 4 ++++ src/monitor/monitor_iface_generated.c | 7 +++++++ src/monitor/monitor_iface_generated.h | 2 ++ 3 files changed, 13 insertions(+) (limited to 'src/monitor') diff --git a/src/monitor/monitor_iface.xml b/src/monitor/monitor_iface.xml index 1f61de5b7..3d0e67f71 100644 --- a/src/monitor/monitor_iface.xml +++ b/src/monitor/monitor_iface.xml @@ -47,5 +47,9 @@ + + + + diff --git a/src/monitor/monitor_iface_generated.c b/src/monitor/monitor_iface_generated.c index ee59242c1..0eee10cae 100644 --- a/src/monitor/monitor_iface_generated.c +++ b/src/monitor/monitor_iface_generated.c @@ -117,6 +117,13 @@ const struct sbus_method_meta mon_cli_iface__methods[] = { offsetof(struct mon_cli_iface, clearEnumCache), NULL, /* no invoker */ }, + { + "sysbusReconnect", /* name */ + NULL, /* no in_args */ + NULL, /* no out_args */ + offsetof(struct mon_cli_iface, sysbusReconnect), + NULL, /* no invoker */ + }, { NULL, } }; diff --git a/src/monitor/monitor_iface_generated.h b/src/monitor/monitor_iface_generated.h index 37e4d480b..f93f11731 100644 --- a/src/monitor/monitor_iface_generated.h +++ b/src/monitor/monitor_iface_generated.h @@ -26,6 +26,7 @@ #define MON_CLI_IFACE_ROTATELOGS "rotateLogs" #define MON_CLI_IFACE_CLEARMEMCACHE "clearMemcache" #define MON_CLI_IFACE_CLEARENUMCACHE "clearEnumCache" +#define MON_CLI_IFACE_SYSBUSRECONNECT "sysbusReconnect" /* ------------------------------------------------------------------------ * DBus handlers @@ -63,6 +64,7 @@ struct mon_cli_iface { sbus_msg_handler_fn rotateLogs; sbus_msg_handler_fn clearMemcache; sbus_msg_handler_fn clearEnumCache; + sbus_msg_handler_fn sysbusReconnect; }; /* ------------------------------------------------------------------------ -- cgit