mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 13:41:22 +08:00
The plugin headers are contained in the include directory
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
int neu_parse_param(char *buf, char **err_param, int n, neu_json_elem_t *ele,
|
||||
...);
|
||||
@@ -26,7 +26,7 @@ extern "C" {
|
||||
#include <stdint.h>
|
||||
|
||||
#include "neu_data_expr.h"
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
typedef struct neu_parse_read_req {
|
||||
uint32_t node_id;
|
||||
@@ -4,7 +4,7 @@ set(MODBUS_TCP_PLUGIN_SOURCES modbus.c modbus_tcp.c modbus_point.c)
|
||||
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}")
|
||||
add_library(${MODBUS_TCP_PLUGIN} SHARED)
|
||||
target_sources(${MODBUS_TCP_PLUGIN} PRIVATE ${MODBUS_TCP_PLUGIN_SOURCES})
|
||||
target_include_directories(${MODBUS_TCP_PLUGIN} PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/src)
|
||||
target_include_directories(${MODBUS_TCP_PLUGIN} PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
||||
if(APPLE)
|
||||
target_link_libraries(${MODBUS_TCP_PLUGIN} nng::nng neuron-base)
|
||||
else()
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "neu_tag_group_config.h"
|
||||
#include "neu_vector.h"
|
||||
#include "neuron.h"
|
||||
#include "parser/neu_json_param.h"
|
||||
#include "json/neu_json_param.h"
|
||||
|
||||
#include "modbus.h"
|
||||
#include "modbus_point.h"
|
||||
|
||||
@@ -25,12 +25,12 @@ extern "C" {
|
||||
|
||||
#include <neuron.h>
|
||||
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_group_config.h"
|
||||
#include "parser/neu_json_mqtt.h"
|
||||
#include "parser/neu_json_node.h"
|
||||
#include "parser/neu_json_rw.h"
|
||||
#include "parser/neu_json_tag.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_group_config.h"
|
||||
#include "json/neu_json_mqtt.h"
|
||||
#include "json/neu_json_node.h"
|
||||
#include "json/neu_json_rw.h"
|
||||
#include "json/neu_json_tag.h"
|
||||
|
||||
#define UNUSED(x) (void) (x)
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "mqtt_client.h"
|
||||
#include "schema/schema.h"
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
#include <config.h>
|
||||
#include <neuron.h>
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "option.h"
|
||||
#include "schema/schema.h"
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
#include <config.h>
|
||||
|
||||
#define BUF_SIZE 40960
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "vector.h"
|
||||
|
||||
#include "neu_plugin.h"
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_node.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_node.h"
|
||||
|
||||
#include "handle.h"
|
||||
#include "http.h"
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
#include "neu_datatag_table.h"
|
||||
#include "neu_log.h"
|
||||
#include "neu_plugin.h"
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_tag.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_tag.h"
|
||||
|
||||
#include "handle.h"
|
||||
#include "http.h"
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include "neu_log.h"
|
||||
#include "neu_plugin.h"
|
||||
#include "neu_subscribe.h"
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_group_config.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_group_config.h"
|
||||
|
||||
#include "handle.h"
|
||||
#include "http.h"
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_tty.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_tty.h"
|
||||
|
||||
#include "handle.h"
|
||||
#include "http.h"
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "vector.h"
|
||||
|
||||
#include "neu_plugin.h"
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_plugin.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_plugin.h"
|
||||
|
||||
#include "handle.h"
|
||||
#include "http.h"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
#include "neu_log.h"
|
||||
#include "neu_plugin.h"
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_rw.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_rw.h"
|
||||
|
||||
#include "handle.h"
|
||||
#include "http.h"
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
#include "neu_json_fn.h"
|
||||
#include "neu_json_param.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_param.h"
|
||||
|
||||
int neu_json_encode_by_fn(void *param, neu_json_encode_fn fn, char **result)
|
||||
{
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
#include "neu_json_group_config.h"
|
||||
#include "json/neu_json_group_config.h"
|
||||
|
||||
int neu_parse_decode_add_group_config(char * buf,
|
||||
neu_parse_add_group_config_req_t **result)
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
#include "neu_json_mqtt.h"
|
||||
#include "json/neu_json_mqtt.h"
|
||||
|
||||
int neu_parse_decode_mqtt_param(char *buf, neu_parse_mqtt_t **req)
|
||||
{
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "neu_json_node.h"
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
#include "json/neu_json_node.h"
|
||||
|
||||
int neu_parse_decode_add_node(char *buf, neu_parse_add_node_req_t **result)
|
||||
{
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
#include "neu_json_plugin.h"
|
||||
#include "json/neu_json_plugin.h"
|
||||
|
||||
int neu_parse_decode_add_plugin(char *buf, neu_parse_add_plugin_req_t **result)
|
||||
{
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
#include "neu_json_rw.h"
|
||||
#include "json/neu_json_rw.h"
|
||||
|
||||
int neu_parse_decode_read(char *buf, neu_parse_read_req_t **result)
|
||||
{
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "neu_json_tag.h"
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
#include "json/neu_json_tag.h"
|
||||
|
||||
int neu_parse_decode_add_tags(char *buf, neu_parse_add_tags_req_t **result)
|
||||
{
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
**/
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "neu_json_tty.h"
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
#include "json/neu_json_tty.h"
|
||||
|
||||
int neu_parse_encode_get_tty(void *json_object, void *param)
|
||||
{
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "neu_log.h"
|
||||
#include "schema.h"
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
struct neu_schema_valid {
|
||||
void * root;
|
||||
|
||||
+1
-1
@@ -22,8 +22,8 @@
|
||||
|
||||
#include <jansson.h>
|
||||
|
||||
#include "json.h"
|
||||
#include "neu_log.h"
|
||||
#include "json/json.h"
|
||||
|
||||
static json_t *encode_object_value(neu_json_elem_t *ele)
|
||||
{
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_mqtt.h"
|
||||
#include "parser/neu_json_rw.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_mqtt.h"
|
||||
#include "json/neu_json_rw.h"
|
||||
|
||||
TEST(JsonAPITest, ReadReqDecode)
|
||||
{
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_tag.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_tag.h"
|
||||
|
||||
TEST(JsonDatatagTableTest, AddTagDecode)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <cstdlib>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_group_config.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_group_config.h"
|
||||
|
||||
TEST(TagGroupConfigTest, neu_parse_decode_get_group_config_req)
|
||||
{
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_node.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_node.h"
|
||||
|
||||
TEST(JsonNodesTest, AddNodesDecode)
|
||||
{
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "parser/neu_json_fn.h"
|
||||
#include "parser/neu_json_plugin.h"
|
||||
#include "json/neu_json_fn.h"
|
||||
#include "json/neu_json_plugin.h"
|
||||
|
||||
TEST(JsonPluginTest, AddPluginDecode)
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
TEST(JsonTest, DecodeField)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "schema/schema.h"
|
||||
#include "utils/json.h"
|
||||
#include "json/json.h"
|
||||
|
||||
#define SCHEMA_FILE "./plugin_param_schema_test.json"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user