]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Monitor: expose local monitor commands to other compilation units
authorGreg Farnum <greg@inktank.com>
Fri, 6 Dec 2013 21:48:42 +0000 (13:48 -0800)
committerGreg Farnum <greg@inktank.com>
Mon, 9 Dec 2013 06:21:41 +0000 (22:21 -0800)
Signed-off-by: Greg Farnum <greg@inktank.com>
src/mon/Monitor.cc
src/mon/Monitor.h

index b35269baf15df7bfaf8ed35af84227a91719080e..136c42672a16bfe519bc59d68ae30e978fce302e 100644 (file)
@@ -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) {
index 679ae39450b8800e36bbdc8dcc10d98c05b36ab2..cfb9f549c398ed818570c45bd7d7f540f9b0c2fc 100644 (file)
@@ -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