From: Greg Farnum Date: Fri, 6 Dec 2013 21:48:42 +0000 (-0800) Subject: Monitor: expose local monitor commands to other compilation units X-Git-Tag: v0.75~125^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4cd5c3bf3f4d2db53a8ab4aeb539e4a4bd849812;p=ceph.git Monitor: expose local monitor commands to other compilation units Signed-off-by: Greg Farnum --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index b35269baf15d..136c42672a16 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1945,6 +1945,12 @@ void get_command_descriptions(const MonCommand *commands, f->flush(*rdata); } +void get_locally_supported_monitor_commands(const MonCommand **cmds, int *count) +{ + *cmds = mon_commands; + *count = ARRAY_SIZE(mon_commands); +} + void Monitor::handle_command(MMonCommand *m) { if (m->fsid != monmap->fsid) { diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index 679ae39450b8..cfb9f549c398 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -910,5 +910,6 @@ void get_command_descriptions(const MonCommand *commands, unsigned commands_size, Formatter *f, bufferlist *rdata); +void get_locally_supported_monitor_commands(const MonCommand **cmds, int *count); #endif