我要评分
获取效率
正确性
完整性
易理解

DBSD_Init

Initializes the database security detection module and registers the callback function. The initialization is performed only once.

DBSD_RET_CODE DBSD_Init(const DBSD_Callbacks *cb, const char *logPath, const char *dataPath);

Parameters

Parameter

Description

Value Range

Input/Output

cb

Callback function

Non-empty

Input

logPath

Log root directory. Run logs and detection results can be written to this directory.

Non-empty

Input

dataPath

Data directory, which is the root directory of the configuration file.

Non-empty

Input

Return Values

  • Success: DBSD_RET_OK(0)
  • Failure: Error code