From c398e6ec613c1f90ffe33608c511208100e7372f Mon Sep 17 00:00:00 2001 From: Yalei Wang Date: Mon, 12 Mar 2018 10:07:58 +0800 Subject: Add the nSocket module for dmm Change-Id: I8b97fbe50c9c1c479072510b8d799fe711360da7 Signed-off-by: Yalei Wang --- src/nSocket/nstack/nstack_info_parse.h | 56 ++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/nSocket/nstack/nstack_info_parse.h (limited to 'src/nSocket/nstack/nstack_info_parse.h') diff --git a/src/nSocket/nstack/nstack_info_parse.h b/src/nSocket/nstack/nstack_info_parse.h new file mode 100644 index 0000000..0522d2c --- /dev/null +++ b/src/nSocket/nstack/nstack_info_parse.h @@ -0,0 +1,56 @@ +/* +* +* Copyright (c) 2018 Huawei Technologies Co.,Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at: +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + +#ifndef _NSTACK_INFO_PARSE_H_ +#define _NSTACK_INFO_PARSE_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "nstack_module.h" +#include "nstack_log.h" +#include "nstack_securec.h" +#include "nstack_rd.h" +#include "nstack_rd_data.h" + +#define DEFALT_MODULE_CFG_FILE "./module_config.json" +#define DEFALT_RD_CFG_FILE "./rd_config.json" +#define FILE_PATCH_MAX 256 +#define NSTACK_CFG_FILELEN_MAX (1 * 1024 * 1024) +#define NSTACK_RETURN_OK 0 +#define NSTACK_RETURN_FAIL -1 + +#define NSTACK_MOD_CFG_FILE "NSTACK_MOD_CFG_FILE" +#define NSTACK_MOD_CFG_RD "NSTACK_MOD_CFG_RD" + +extern nstack_module_keys g_nstack_module_desc[NSTACK_MAX_MODULE_NUM]; +extern ns_uint32 g_mudle_num; + +extern int nstack_module_parse (); +extern int nstack_stack_rd_parse (rd_route_data ** data, int *num); + +#endif -- cgit 1.2.3-korg