* FIX [proxy.h & web_server.h] fixed vsomeip compile error.

This commit is contained in:
lee-emqx
2023-03-28 14:17:57 +08:00
committed by Jaylin
parent 0ac623b084
commit 8552b4a10d
3 changed files with 19 additions and 2 deletions

View File

@ -20,7 +20,15 @@ typedef struct {
cmd_args args;
} proxy_info;
#ifdef __cplusplus
extern "C" {
#endif
proxy_info *proxy_info_alloc(const char *name, void *conf, char *conf_path,
conf_http_server *http_conf, int argc, char **argv);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -12,7 +12,16 @@
#define HTTP_DEFAULT_PASSWORD "public"
#define HTTP_DEFAULT_PORT 8082
#ifdef __cplusplus
extern "C" {
#endif
extern int start_rest_server(proxy_info *proxy);
extern void stop_rest_server(void);
#ifdef __cplusplus
}
#endif
#endif // __NANOMQ_CLI_WEB_SERVER_H__

View File

@ -5,7 +5,7 @@ proxy_info_alloc(const char *name, void *conf, char *conf_path,
conf_http_server *http_conf, int argc, char **argv)
{
proxy_info *info = nng_zalloc(sizeof(proxy_info));
info->proxy_name = PROXY_NAME_ZEROMQ;
info->proxy_name = name;
info->conf = conf;
info->conf_path = conf_path;
info->http_server = http_conf;
@ -13,4 +13,4 @@ proxy_info_alloc(const char *name, void *conf, char *conf_path,
info->args.argv = argv;
return info;
}
}