1 ;;; config-skel.el - config function command skeleton
5 (define-skeleton skel-config
6 "Insert a vlib config skeleton "
8 '(setq cfg-name (skeleton-read "Config Class Name: "))
12 " cfg-name "_config (vlib_main_t * vm, unformat_input_t * input)
16 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) {
17 if (unformat (input, \"whatever %d\", &whatever))
20 return clib_error_return (0, \"unknown input `%U'\",
21 format_unformat_error, input);
27 VLIB_CONFIG_FUNCTION (" cfg-name "_config, \"" cfg-name "\");