Function: init
|
C Prototype |
aclError aclInit(const char *configPath) |
|---|---|
|
Python Function |
ret = acl.init(config_path) |
|
Function Usage |
pyACL initialization function. |
|
Input Description |
config_path: str, path of the configuration file, including the file name. The configuration file is in JSON format. A JSON file allows up to 10 levels of curly brackets and square brackets, respectively. To use the default configurations, directly call the acl.init interface without passing any parameter or set the configuration file to an empty JSON string (that is, only {} exists in the configuration file). The configuration file is in JSON format. The following configurations are supported:
Dump configuration and profiling configuration should not be both set. The dump operation could affect the system performance, resulting in inaccurate profile data collected by Profiling. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
|
|
API |
pyACL provides more flexible APIs for enabling Dump and Profiling. Unlike acl.init, these APIs can be called repeatedly in a process, allowing for varied dump/profiling configurations with each call.
|
|
Reference |
