sco_ui_v1.unregister_tab
Removes one of this plugin’s tabs, and its badge. SCO_NOT_FOUND: it has none by that id.
Signature
Section titled “Signature”sco_result (*)(sco_plugin *, const char *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sco_ui_v1.unregister_tab |
| Record ID | sco-ui-v1-unregister-tab |
| Service | sco.ui |
| Table | sco_ui_v1 |
| Version macro | SCO_UI_VERSION_1_0 |
| Packed table version | 65536 |
| Since / availability | size >= 24; 1.0 |
| Complete member extent (x64 bytes) | 24 |
| Table size (x64 bytes) | 80 |
Parameters and buffers
Section titled “Parameters and buffers”sco_result (*unregister_tab)(sco_plugin* self, const char* id);
Removes one of this plugin’s tabs, and its badge. SCO_NOT_FOUND: it has none by that id.
Results and failures
Section titled “Results and failures”Absent table: query_service NOT_FOUND; stopped self-taking methods: UNAVAILABLE; invalid/released self: 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”Removes own tab and badge. Free ctx immediately on game thread, including inside draw; elsewhere defer freeing via run_on_game_thread.
Thread affinity
Section titled “Thread affinity”Any thread; allowed inside own draw. Other reentrancy unspecified.
Callback context
Section titled “Callback context”unspecified
Reentrancy
Section titled “Reentrancy”allowed inside own draw.
Cleanup and cancellation
Section titled “Cleanup and cancellation”No in-flight cancellation API; unregister/unbind removes registration; ordinary unload/non-retained crash cleanup withdraws all UI. Retained-provider faults skip owner resource-release hooks and require restart; backing resources remain retained, not safe for cached calls. Guarded draws stop, but snapshots and chord reservations remain.
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_ui.h(*unregister_tab) |
| cpp | typed-wrapper | include/scosdk/ui.hppsco_result RemoveTab(const char* id) noexcept { return detail::CanCall(t_, &sco_ui_v1::unregister_tab) ? t_->unregister_tab(self_, id) : SCO_UNAVAILABLE; } |
| csharp | typed-wrapper | sdk/csharp/Sco.Sdk/Ui.csfixed (byte* i = Utf8.Z(id)) r = _t->unregister_tab(Self, i); |
| lua | unsupported | docs/ui.mdScripts bind hotkeys; tabs and overlays need draw callbacks from Lua |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
- tests/abi_ui.c
- tests/test_settings.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.