sco_settings_v1.get_bool
out = 0 or 1. SCO_BAD_ARG: not a bool setting, a NULL name or out, or a bad self.
Signature
Section titled “Signature”sco_result (*)(sco_plugin *, const char *, int32_t *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sco_settings_v1.get_bool |
| Record ID | sco-settings-v1-get-bool |
| Service | sco.settings |
| Table | sco_settings_v1 |
| Version macro | SCO_SETTINGS_VERSION_1_0 |
| Packed table version | 65536 |
| Since / availability | size >= 16; 1.0 |
| Complete member extent (x64 bytes) | 16 |
| Table size (x64 bytes) | 48 |
Parameters and buffers
Section titled “Parameters and buffers”sco_result (*get_bool)(sco_plugin* self, const char* name, int32_t* out);
out = 0 or 1. SCO_BAD_ARG: not a bool setting, a NULL name or out, or a bad self.
Results and failures
Section titled “Results and failures”Absent table: query_service NOT_FOUND; stopped: UNAVAILABLE; invalid/released self: BAD_ARG; unknown setting: NOT_FOUND; wrong type: BAD_ARG; allocation exceptions: TOO_MANY. Additional failures/output state unspecified unless described in the buffer contract.
Absent capability
Section titled “Absent capability”Absent table: query_service NOT_FOUND
Ownership
Section titled “Ownership”Caller outputs; host owns settings; no allocation transfer. String/error copy may allocate internally.
Thread affinity
Section titled “Thread affinity”Any thread; memory reads under lock. Recursive 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 reads; unload withdraws settings. Retained-provider faults skip owner resource-release hooks and require restart; backing resources remain retained, not safe for cached calls.
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_settings.h(*get_bool) |
| cpp | typed-wrapper | include/scosdk/settings.hppconst sco_result r = t_->get_bool(self_, name, &v); |
| csharp | typed-wrapper | sdk/csharp/Sco.Sdk/Settings.csfixed (byte* n = Utf8.Z(name)) r = _t->get_bool(Self, n, &v); |
| lua | typed-wrapper | plugins/lua/sco_lua.cif ((r = st->get_bool(s->self, name, &b)) == SCO_OK) { lua_pushboolean(L, b); return 1; } |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
- tests/abi_settings.c
- tests/test_settings.cpp
- sdk/csharp/Sco.Sdk.Tests/FakeHost.cs
- tests/test_lua.cpp
- tools/test.sh
- sdk/csharp/Sco.Sdk.Tests/Layout.cs
ABI pins prove layout, not semantic behavior or a live game session.