diff options
Diffstat (limited to 'src/examples/vlib/main_stub.c')
-rw-r--r-- | src/examples/vlib/main_stub.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/examples/vlib/main_stub.c b/src/examples/vlib/main_stub.c index ef6475ca657..be16a2b98bc 100644 --- a/src/examples/vlib/main_stub.c +++ b/src/examples/vlib/main_stub.c @@ -30,12 +30,10 @@ main_stub_init (vlib_main_t * vm) return error; } -/* *INDENT-OFF* */ VLIB_INIT_FUNCTION (main_stub_init) = { .runs_after = VLIB_INITS("unix_physmem_init", "unix_cli_init"), }; -/* *INDENT-ON* */ #if 0 /* Node test code. */ @@ -105,7 +103,6 @@ my_func (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) return i; } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (my_node1,static) = { .function = my_func, .type = VLIB_NODE_TYPE_INPUT, @@ -117,16 +114,13 @@ VLIB_REGISTER_NODE (my_node1,static) = { [0] = "my-node2", }, }; -/* *INDENT-ON* */ -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (my_node2,static) = { .function = my_func, .name = "my-node2", .scalar_size = sizeof (my_frame_t), .vector_size = STRUCT_SIZE_OF (my_frame_t, vector[0]), }; -/* *INDENT-ON* */ #endif @@ -209,13 +203,11 @@ my_proc (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) return i; } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (my_proc_node,static) = { .function = my_proc, .type = VLIB_NODE_TYPE_PROCESS, .name = "my-proc", }; -/* *INDENT-ON* */ static uword my_proc_input (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) @@ -250,13 +242,11 @@ my_proc_input (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) return 0; } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (my_proc_input_node,static) = { .function = my_proc_input, .type = VLIB_NODE_TYPE_INPUT, .name = "my-proc-input", }; -/* *INDENT-ON* */ static uword _unformat_farith (unformat_input_t * i, va_list * args) @@ -384,7 +374,6 @@ bar_command (vlib_main_t * vm, return 0; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (bar_command2, static) = { .path = "bar %decimal_integer", .short_help = "bar1 command", @@ -403,7 +392,6 @@ VLIB_CLI_COMMAND (bar_command3, static) = { .function = bar_command, .function_arg = 3, }; -/* *INDENT-ON* */ #endif |