NET_DVR_SetSDKInitCfg

Set initialization parameters.

API Parameters

BOOL NET_DVR_SetSDKInitCfg(
  NET_SDK_INIT_CFG_TYPE    enumType,
  void* const              lpInBuff
);

Parameters

enumType
[IN] Initialization parameter type. Different type values correspond to different parameters, see details in the table below.
Table 1 NET_SDK_INIT_CFG_TYPE

enumType

Value

Description

lpInBuff

NET_SDK_INIT_CFG_ABILITY

1

Capability supported by SDK.

NET_DVR_INIT_CFG_ABILITY

NET_SDK_INIT_CFG_SDK_PATH

2

Set loading path for component libraries (supported by both Linux and Windows system).

NET_DVR_LOCAL_SDK_PATH

NET_SDK_INIT_CFG_LIBEAY_PATH

3

Set path (including library name) for libeay32.dll (Windows), libcrypto.so (Linux), and libcrypto.dylib (Mac) of OpenSSL in version 1.1.1 and 1.0.2.

Path in string format, e.g., C:\\libeay32.dll.

NET_SDK_INIT_CFG_SSLEAY_PATH

4

Set path (including library name) for ssleay32.dll (Windows), libssl.so (Linux), libssl.dylib (Mac) of OpenSSL in version 1.1.1 and 1.0.2.

Path in string format, e.g., C:\\ssleay32.dll.

lpInBuff

[IN] Input parameter. Different parameter types correspond to different structures, see details in the table above.

Return Values

Returns TURE for success, and returns FALSE for failure.

If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

Remarks

This API should be called before calling NET_DVR_Init to initialize and check the dependent libraries or capabilities. This API only takes effect for POSIX. For Windows, it takes no effect but success will be returned.