conf_cmd_equals(args[i], str_cmd, char_cmd, &val_pos)
#define DEFINE_CONF_VARS(usage_func) \
- unsigned int val_pos; \
- void (*args_usage)() = usage_func; \
- bool __isarg
+ unsigned int val_pos __attribute__((unused)); \
+ void (*args_usage)() __attribute__((unused)) = usage_func; \
+ bool __isarg __attribute__((unused))
#define FOR_EACH_ARG(args) \
*
*/
+#include "ceph.h"
+#include "common/common_init.h"
#include "config.h"
#include <iostream>
+#include <sstream>
#include <vector>
// tool/gui.cc
}
}
-static int cephtool_run_gui()
+static int cephtool_run_gui(int argc, const char **argv)
{
g.log = &gss;
g.slog = &gss;
parse_gceph_args(args);
- if (cephtool_common_init(CEPH_TOOL_MODE_GUI)) {
+ if (ceph_tool_common_init(CEPH_TOOL_MODE_GUI)) {
cerr << "cephtool_common_init failed." << std::endl;
return 1;
}
- if (cephtool_run_gui())
+ if (cephtool_run_gui(argc, argv))
ret = 1;
if (ceph_tool_messenger_shutdown())
ret = 1;
- if (cephtool_common_shutdown())
+ if (ceph_tool_common_shutdown())
ret = 1;
return ret;