EC_CONFIG_NODE(3)
π EC_CONFIG_NODE(3) π
okay bestie, welcome to the Libecoli Programmer's Manual β¨ this one's short and sweet but it has ONE absolutely iconic little plot twist you cannot miss, so stay with me π«Ά
πΈ NAME πΈ
ec_config_node β make a node configuration value. that's it. that's the job. π
β¨ SYNOPSIS β¨
#include <ecoli/config.h>
struct ec_config * ec_config_node(
/*
* The node pointer to be set. The node is "consumed" by the function and
* should not be used by the caller, even on error. The caller can use
* ec_node_clone() to keep a reference on the node.
*/
struct ec_node *node
);
π¦ DESCRIPTION π¦
so you hand this function a struct ec_node * and it turns that into a shiny new config value. that's the whole vibe. π
but listen. LISTEN. this is the part where you pay attention, no cap:
the node pointer is consumed by the function. like, eaten. gone. devoured. π
that means once you call ec_config_node(), you do NOT get to use that node pointer anymore β not even if the call fails and returns an error. the function takes ownership the second you ring its doorbell, and it is not giving it back. π
so if you're the kind of girlie who still needs her node after this call? you gotta use ec_node_clone() first to keep a reference on it. clone before you commit, bestie. that's the rule. π
π RETURN VALUE π
- the configuration object β¨ β slay, you got it
- or
NULLon error, anderrnois set to tell you what went wrong π
π SEE ALSO π
the whole friend group showed up, and they are all iconic in their own way:
ec_config_schema_sub(3)ec_config_u64(3)ec_config_list_del(3)ec_config_dict(3)ec_config_count(3)ec_config_schema_dump(3)ec_config_i64(3)ec_config_list_next(3)ec_config_get_type(3)ec_config_dict_set(3)ec_config_list_first(3)ec_config_schema_type(3)ec_config_list(3)ec_config_cmp(3)ec_node_config_node_list_to_table(3)ec_config_key_is_reserved(3)ec_config_string(3)ec_config_dict_get(3)ec_config_free(3)ec_node_config_node_list_from_vargs(3)ec_config_list_add(3)ec_config_schema_validate(3)ec_config_schema_lookup(3)ec_config_validate(3)ec_config_dup(3)ec_config_dump(3)ec_config_dict_del(3)ec_config_bool(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry. π
and that's the whole page, bestie!! β¨π¦πΈ this was brought to you by libecoli, dated 2026-06-11, living its best life in section 3 of the manual. mwah, go clone your nodes and stay hydrated π
ππ
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms