EC_NODE_DYNLIST(3)

πŸ“¦
version 0.11.7 Β· 5 versions
, in fedora 44

EC_NODE_DYNLIST(3) πŸ’…

okay bestie, welcome to the Libecoli Programmer's Manual ✨ this one's from the libecoli crew and it's literally all about making a dynlist node. yes, we're doing C today. yes, you're gonna slay. let's go πŸ¦‹


✨ NAME ✨

ec_node_dynlist β€” Create a dynlist node. that's it. that's the whole job. iconic behavior honestly πŸ’–


🌸 SYNOPSIS 🌸

#include <ecoli/node_dynlist.h>

struct ec_node * ec_node_dynlist(
    const char                 *id,      /* The node identifier. */
    /*
     * The function that returns the list of object names as a string vector.
     */
    ec_node_dynlist_get_t       get,
    void                       *opaque,  /* A user pointer passed to the get function. */
    /*
     * The regular expression defining the valid pattern for object names.
     */
    const char                 *re_str,
    enum ec_node_dynlist_flags  flags    /* Customize parsing and completion behavior. */
);

like look at that signature. four-ish things going in and a whole node coming out. main character energy fr fr πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

so the vibe here is: the parsing and completion depend on a list returned by a user-provided callback, a regular expression, and flags. that's the trio. that's the whole squad. the callback hands you the names, the regex says which shapes are valid, and the flags fine-tune how it all goes down πŸ’…


🧚 STRUCTURES 🧚

here's the flag enum, bestie, in all its glory:

enum ec_node_dynlist_flags {
      DYNLIST_MATCH_LIST;
      DYNLIST_MATCH_REGEXP;
      DYNLIST_EXCLUDE_LIST;
};

three little icons, three little moods. DYNLIST_MATCH_LIST, DYNLIST_MATCH_REGEXP, and DYNLIST_EXCLUDE_LIST. periodt ✨


⭐ RETURN VALUE ⭐

you get the dynlist grammar node back 🫢 …or NULL on error 😭 (we don't talk about the error timeline).


🌈 SEE ALSO 🌈

literally nothing here bestie, the section exists but it's empty. a moment of silence πŸ•ŠοΈ

Copyright (C) 2010-2026 Olivier Matz, Robin Jarry. respect the authors, they ate πŸ’–


kisses, this was libecoli, dated 2026-06-11, page EC_NODE_DYNLIST(3) β€” go make some dynlist nodes bestie, you got this πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from