sco_api
Methods and entrypoints for sco_api.
sco_api
Section titled “sco_api”Source: sco_api.h, implementation, layout pin.
API 1.0 ends at 88 bytes; 1.1 adds the five final methods through 128 bytes.
register_command requires at least the 72-byte descriptor, at most 16 arguments,
non-NULL fn, and for nonempty defs arg_def_size >= 24 and aligned to the argument
definition alignment. Copied strings have limits: name/title/capability 63 bytes,
help 255, argument name 31 and help 127, excluding NUL. Replies have a 256-byte
host buffer including NUL. Normal unloading removes owned registrations/queued
work; void methods silently ignore invalid self rather than returning BAD_ARG.
Source for registry/queue details: commands,
events, tasks,
services, raw handlers.
The immediate invoke’s “done once” rule applies after initial validation; invalid
self/name/count/buffer combinations can return without entering completion.