mirror of
https://github.com/nanomq/nanomq.git
synced 2025-06-22 01:57:27 +00:00
* FIX [proxy.h & web_server.h] fixed vsomeip compile error.
This commit is contained in:
@ -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
|
||||
|
@ -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__
|
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user