ecoli_node_or(3)

πŸ“¦
version 0.11.3 Β· 2 versions
, in epel 9

NAME ✨

Okay bestie, welcome to the Libecoli manual page for ecoli_node_or β€” the Or node πŸ’…

  • ecoli_node_or β€” a node that matches one of its child nodes. That’s the whole vibe: one of the children, not all of them, no cap 🫢

SYNOPSIS πŸŽ€

Macros

#define EC_NODE_OR(args...)   __ec_node_or(args, EC_VA_END)

Functions

struct ec_node * ec_node_or (const char *id)
int ec_node_or_add (struct ec_node *node, struct ec_node *child)

Detailed Description 🌸

A node that matches one of its child nodes. Literally that. It’s giving β€œpick one of these children” energy ✨

Configuration Schema πŸŽ€

schema or {
    list children  {
        description "The list of children nodes defining the choice elements.";

        node  {
            description "A child node which is part of the choice.";
        }
    }
}

Macro Definition Documentation πŸ’…

#define EC_NODE_OR(args...) __ec_node_or(args, EC_VA_END)

Create a new 'or' node from an arbitrary list of child nodes. All nodes given in the list will be freed when freeing this one, or immediately on error. So like, the cleanup is handled, bestie β€” no leaked-node drama 😭πŸ”₯

Definition at line 23 of file node_or.h.


Function Documentation πŸ¦‹

struct ec_node* ec_node_or (const char * id)

Create an empty 'or' node. A blank canvas, an empty group chat, an icon waiting for its children πŸ‘‘

int ec_node_or_add (struct ec_node * node, struct ec_node * child)

Add a child to an 'or' node.

The child is consumed and will be freed when the parent is freed, or immediately on error. So yeah β€” once it’s added, the parent owns it, periodt πŸ’€βœ¨


Author πŸ’–

Generated automatically by Doxygen for Libecoli from the source code. Not me, bestie β€” Doxygen did that πŸ’…


That’s the whole page, bestie: Libecoli source, version 0.11.3, dated Thu Apr 9 2026 β€” iconic behavior, no notes πŸŒˆπŸ’–

πŸ“¦ where this page comes from