Next: , Up: API Definitions: Constants and Enumerations   [Contents]


B.2.1 I/O Flags

Bitwise guint64 policy on every Input and Output. OR them at construction; read or write from rules (see I/O Flags in Rules).

ST_IO_FLAG_NULL

No flags (0x0).

ST_IO_FLAG_MANUAL_OVERRIDE

While set on an Output, the Core skips automatic SetOutput from rules (maintenance / manual mode). Not writable from rules.

ST_IO_FLAG_SOFTWARE_OVERRIDE

External-software ownership marker. Core does not gate SetOutput; rules may set/clear this bit and should respect it while set.

ST_IO_FLAG_NO_HISTORY

Live evaluation only; Core skips history rows. Not writable from rules.

ST_IO_FLAG_USR1

User bit; no Core meaning.

ST_IO_FLAG_USR2

User bit; no Core meaning.

ST_IO_FLAG_USR3

User bit; no Core meaning.

ST_IO_FLAG_USR4

User bit; no Core meaning.

ST_IO_FLAG_USR_MASK

Mask of all user bits (0xF000000000000000ULL).

Function: gchar * st_io_flags_to_string (guint64 flags)

Renders a flag bitfield as a newly allocated, comma-separated list of known token names. Zero flags yield an empty string; unknown residual bits appear as a hex literal.

flags

Bitfield to render.

Returns: Newly allocated string (transfer full; free with g_free). Never NULL.

Function: gboolean st_io_flags_from_string (const gchar *str, guint64 *flags)

Parses comma- or pipe-separated tokens (including hyphen aliases) or a numeric literal into a bitfield. NULL or empty str means ST_IO_FLAG_NULL.

str

Text to parse, or NULL.

flags

Out-parameter; receives the parsed bitfield on success.

Returns: TRUE on success, FALSE if the string cannot be understood.


Next: STUnit Enumeration, Up: API Definitions: Constants and Enumerations   [Contents]