MC_knlGetResource#
Copy a packaged resource into an application-provided buffer.
Prototype#
M_Int32 MC_knlGetResource(M_Int32 resourceID, void *buf, M_Int32 bufSize);
-
M_Int32 MC_knlGetResource(M_Int32 resourceID, void *buf, M_Int32 bufSize)#
Copy a packaged resource into an application-provided buffer.
- Ownership
The caller owns the destination buffer and its copied contents.
- API level
WIPI-C 1.2.1, ordinal 143.
- Documentation status
reviewed.
- Parameters:
resourceID – Resource ID returned by MC_knlGetResourceID.
buf – Destination buffer.
bufSize – Destination capacity in bytes.
- Returns:
The provider-defined result code.
Catalog identity#
Field |
Value |
|---|---|
API level |
|
Family |
|
Ordinal |
143 |
Documentation |
|
Implementation class |
|
ABI class |
|
Usage#
Parameters#
Name |
Meaning |
|---|---|
|
Resource ID returned by MC_knlGetResourceID. |
|
Destination buffer. |
|
Destination capacity in bytes. |
Return value#
The provider-defined result code.
Ownership#
The caller owns the destination buffer and its copied contents.
Profile availability#
API membership, device ABI, and install profile are independent. The rows below describe libwipi implementation evidence, not platform-wide WIPI requirements.
ABI profile |
Install profile |
Current evidence |
|---|---|---|
|
|
headers only |
|
|
linkable generated veneer |
|
|
linkable generated veneer |
|
|
linkable generated veneer; named-device candidate |
|
|
observed in the scoped emulator suite |
|
|
observed in the scoped emulator suite |
|
|
linkable exact-device fixed-root veneer |
Compiled examples#
Evidence boundary#
Samsung/KTF selector confidence: confirmed. Catalog evidence: anycall_magichole:analysis/decompiled/wipi_mc_knl_spec_adapter.c:1256.