GetCapability
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Note: For
Function Description
Queries the library capabilities. The upper layer can call this API before Initialize to check whether the current HIXL library supports specific capabilities (such as Auto Connect and Client/Server communication), avoiding hardcoding default values or incompatibility with the .so file of an earlier version.
Prototype
static Status GetCapability(FeatureType feature_type, int32_t &value)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
feature_type |
Input |
Feature type. For details, see FeatureType. |
value |
Output |
Feature support.
|
Example
None
Returns
- SUCCESS: Success.
- UNSUPPORTED: unknown or unsupported feature type.
- PARAM_INVALID: invalid parameter (feature_type is a negative number).
Constraints
- This API can be called without calling Initialize.
- This API is static and does not depend on the HIXL instance.