24 #include <vpp/app/version.h> 28 #include <builtinurl/builtinurl.api_enum.h> 29 #include <builtinurl/builtinurl.api_types.h> 31 #define REPLY_MSG_ID_BASE bmp->msg_id_base 41 void (*fp) (
void *,
char *, int);
48 (
"http_static_plugin.so",
"http_static_server_register_builtin_handler");
52 return VNET_API_ERROR_NO_SUCH_TABLE;
77 case VNET_API_ERROR_NO_SUCH_TABLE:
79 (0,
"http_static_server_register_builtin_handler undefined");
91 .path =
"builtinurl enable",
92 .short_help =
"Turn on builtin http/https GET and POST urls",
101 vl_api_builtinurl_enable_reply_t *rmp;
110 #include <builtinurl/builtinurl.api.c> 130 .version = VPP_BUILD_VER,
131 .description =
"vpp built-in URL support",
vnet_main_t * vnet_get_main(void)
static clib_error_t * builtinurl_init(vlib_main_t *vm)
#define VLIB_INIT_FUNCTION(x)
#define clib_error_return(e, args...)
static void vl_api_builtinurl_enable_t_handler(vl_api_builtinurl_enable_t *mp)
static void setup_message_id_table(api_main_t *am)
API to enable / disable builtinurl on an interface.
builtinurl_main_t builtinurl_main
void builtinurl_handler_init(builtinurl_main_t *bm)
#define VLIB_CLI_COMMAND(x,...)
void(* register_handler)(void *, char *, int)
void * vlib_get_plugin_symbol(char *plugin_name, char *symbol_name)
static clib_error_t * builtinurl_enable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int builtinurl_enable(builtinurl_main_t *bmp)