sco_api.has
1 if the capability is available on this game build, else 0.
Signature
Section titled “Signature”int (*)(const char *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sco_api.has |
| Record ID | sco-api-has |
| Service | sco_api |
| Table | sco_api |
| Version macro | SCO_API_MAJOR/SCO_API_MINOR |
| Packed table version | 65537 |
| Since / availability | size >= 24; 1.0 |
| Complete member extent (x64 bytes) | 24 |
| Table size (x64 bytes) | 128 |
Parameters and buffers
Section titled “Parameters and buffers”int (*has)(const char* capability);
1 if the capability is available on this game build, else 0.
Results and failures
Section titled “Results and failures”1 available; 0 absent/unknown/NULL name. No result/error channel.
Absent capability
Section titled “Absent capability”1 available; 0 absent/unknown/NULL name.
Ownership
Section titled “Ownership”Capability string borrowed during call; no allocation transfer; fixed registry lookup.
Thread affinity
Section titled “Thread affinity”Any thread; reentrancy unspecified.
Callback context
Section titled “Callback context”unspecified
Reentrancy
Section titled “Reentrancy”unspecified
Cleanup and cancellation
Section titled “Cleanup and cancellation”No cancellation entrypoint; synchronous unless noted.
Language mappings
Section titled “Language mappings”Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.
| Language | Catalogue status | Source evidence / wrapper tokens |
|---|---|---|
| c | direct | include/sco_api.h(*has) |
| cpp | typed-wrapper | include/scosdk/plugin.hppbool Has(const char* capability) const noexcept { return api_ && capability && api_->has(capability) != 0; } |
| csharp | typed-wrapper | sdk/csharp/Sco.Sdk/Plugin.csfixed (byte* c = Utf8.Z(capability)) return a->has(c) != 0; |
| lua | typed-wrapper | plugins/lua/sco_lua.clua_pushboolean(L, Of(L)->api->has(luaL_checkstring(L, 1)) != 0); |
Examples
Section titled “Examples”- tests/abi_v1.c
- tests/test_app.cpp
- tests/test_datacore_service.cpp
- tests/test_host.cpp
- tests/test_ipc.cpp
- tests/test_lua.cpp
- tests/test_net_service.cpp
- tests/test_plugins.cpp
- tests/test_sdk.cpp
- tests/test_settings.cpp
- tests/test_storage.cpp
- tests/test_ui.cpp
- sdk/csharp/Sco.Sdk.Tests/FakeHost.cs
- tools/test.sh
- sdk/csharp/Sco.Sdk.Tests/Layout.cs
ABI pins prove layout, not semantic behavior or a live game session.