Skip to content

sco_api.list_commands

Writes up to max command pointers to out; returns the number of live commands. The pointers stay valid until their owning plugin unloads.

uint32_t (*)(const sco_command **, uint32_t)

Service index

Property Value
Symbol sco_api.list_commands
Record ID sco-api-list-commands
Service sco_api
Table sco_api
Version macro SCO_API_MAJOR/SCO_API_MINOR
Packed table version 65537
Since / availability size >= 88; 1.0
Complete member extent (x64 bytes) 88
Table size (x64 bytes) 128

Header source

uint32_t (*list_commands)(const sco_command** out, uint32_t max);
Writes up to max command pointers to out; returns the number of live commands. The pointers stay valid until their owning plugin unloads.

Returns total live count, not number written; NULL out or max 0 counts only. No result/error channel or capability gate.

unspecified

out array caller-owned; command pointers host-owned until owner unload/slot reuse. Keep names, not pointers. Internal allocation unspecified.

Any thread; reentrancy unspecified.

unspecified

unspecified

No cancellation entrypoint; synchronous unless noted.

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
(*list_commands)
cpp direct include/sco_api.h
(*list_commands)
csharp direct sdk/csharp/Sco.Sdk/Interop.cs
public delegate* unmanaged[Cdecl]<ScoCommand**, uint, uint> list_commands;
lua restricted plugins/lua/sco_lua.c
uint32_t n = s->api->list_commands(list, 512);
plugins/lua/sco_lua.c
if (n > 512) n = 512;

ABI pins prove layout, not semantic behavior or a live game session.