You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
871 B
37 lines
871 B
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2020-2021. All rights reserved.
|
|
* Description: This file is for interpreting the configuration file.
|
|
* Author: Hisilicon
|
|
* Create: 2020-05-16
|
|
*/
|
|
|
|
#ifndef __PARSE_CONFIG_FILE_H
|
|
#define __PARSE_CONFIG_FILE_H
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#endif /* End of #ifdef __cplusplus */
|
|
|
|
#define MAX_FILE_NAME_LEN 1024
|
|
#define MAX_VAR_NUM 128
|
|
#define MAX_VAR_NAME_LEN 128
|
|
#define MAX_VAR_VALUE_LEN MAX_FILE_NAME_LEN
|
|
|
|
td_s32 dmx_parse_config_file(const char *path_to_config_file);
|
|
|
|
td_s32 dmx_get_key_value(const td_char *name, td_u8 *key, td_u32 key_len);
|
|
|
|
td_char *dmx_get_config_var(const td_char *var_name);
|
|
|
|
td_s32 dmx_get_crypto_alg(uapi_crypto_alg *alg_type);
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* End of #ifdef __cplusplus */
|
|
|
|
#endif /* End of #ifndef __PARSE_CFG_FILE_H__ */
|