Lines Matching refs:_service
68 #define GET_WS_NAME(_service) ws_ctx_##_service argument
70 #define GET_WS_TRANSPORT_NAME(_service) transport_shell_ws_##_service argument
71 #define GET_WS_DETAIL_NAME(_service) ws_res_detail_##_service argument
73 #define SHELL_WEBSOCKET_DEFINE(_service) \ argument
74 static struct shell_websocket GET_WS_NAME(_service); \
75 static struct shell_transport GET_WS_TRANSPORT_NAME(_service) = { \
77 .ctx = &GET_WS_NAME(_service), \
80 #define SHELL_WS_PORT_NAME(_service) http_service_##_service argument
81 #define SHELL_WS_BUF_NAME(_service) ws_recv_buffer_##_service argument
84 #define DEFINE_WEBSOCKET_HTTP_SERVICE(_service) \ argument
85 uint8_t SHELL_WS_BUF_NAME(_service)[SHELL_WS_TEMP_RECV_BUF_SIZE]; \
87 GET_WS_DETAIL_NAME(_service) = { \
95 .data_buffer = SHELL_WS_BUF_NAME(_service), \
96 .data_buffer_len = sizeof(SHELL_WS_BUF_NAME(_service)), \
97 .user_data = &GET_WS_NAME(_service), \
99 HTTP_RESOURCE_DEFINE(ws_resource_##_service, _service, \
101 &GET_WS_DETAIL_NAME(_service))
103 #define DEFINE_WEBSOCKET_SERVICE(_service) \ argument
104 SHELL_WEBSOCKET_DEFINE(_service); \
105 SHELL_DEFINE(shell_websocket_##_service, \
107 &GET_WS_TRANSPORT_NAME(_service), \
111 DEFINE_WEBSOCKET_HTTP_SERVICE(_service)
115 #define WEBSOCKET_CONSOLE_DEFINE(_service, _sec_tag_list, _sec_tag_list_size) \ argument
116 static uint16_t SHELL_WS_PORT_NAME(_service) = \
118 HTTPS_SERVICE_DEFINE(_service, \
120 &SHELL_WS_PORT_NAME(_service), \
126 DEFINE_WEBSOCKET_SERVICE(_service); \
131 #define WEBSOCKET_CONSOLE_DEFINE(_service, _sec_tag_list, _sec_tag_list_size) \ argument
132 static uint16_t SHELL_WS_PORT_NAME(_service) = \
134 HTTP_SERVICE_DEFINE(_service, \
136 &SHELL_WS_PORT_NAME(_service), \
140 DEFINE_WEBSOCKET_SERVICE(_service)
144 #define WEBSOCKET_CONSOLE_ENABLE(_service) \ argument
145 (void)shell_websocket_enable(&GET_WS_SHELL_NAME(_service))