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.
32 lines
940 B
32 lines
940 B
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2017-2019. All rights reserved.
|
|
* Description: cust config head file, common interface can not change
|
|
* Author: Hisilicon
|
|
* Create: 2017-05-15
|
|
*/
|
|
|
|
#ifndef __CUST_UTILS_H__
|
|
#define __CUST_UTILS_H__
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
// max path len for a file, common interface can not change
|
|
#define MAX_PATH_LEN 128
|
|
|
|
// cfg file. default
|
|
extern const unsigned int CUST_TYPE_CONFIG;
|
|
|
|
// Public code warehouse, already filing
|
|
// get the highest priority cfg file
|
|
// path_suffix: the relative path of the config file, eg: xml/mms_config.xml
|
|
// type: CUST_TYPE_CONFIG for most config, CUST_TYPE_MEDIA used for overlay, media...
|
|
// buf: caller provided buf for result, size = MAX_PATH_LEN
|
|
// return: the highest priority cfg file path(in buf), if no file exist return nullptr.
|
|
char *cust_get_one_cfg_file(const char *path_suffix, int, char buf[MAX_PATH_LEN]);
|
|
|
|
__END_DECLS
|
|
|
|
#endif
|