}
static void
-help(int argc OVS_UNUSED, char *argv[] OVS_UNUSED)
+help(struct ovs_cmdl_context *ctx OVS_UNUSED)
{
const struct ovs_cmdl_command *p;
struct ds test_names = DS_EMPTY_INITIALIZER;
}
void
-ovstest_register(const char *test_name, ovstest_func f)
+ovstest_register(const char *test_name, ovs_cmdl_handler f)
{
struct ovs_cmdl_command test_cmd;
add_top_level_commands();
if (argc > 1) {
- ovs_cmdl_run_command(argc - 1, argv + 1, commands);
+ struct ovs_cmdl_context ctx = {
+ .argc = argc - 1,
+ .argv = argv + 1,
+ };
+ ovs_cmdl_run_command(&ctx, commands);
}
cleanup();