EC_COMP_ITEM_GET_TYPE(3)
π EC_COMP_ITEM_GET_TYPE π
okay bestie, we're in the Libecoli Programmer's Manual and today's main character is ec_comp_item_get_type β yes, that's the whole vibe, let's go π
β¨ NAME β¨
ec_comp_item_get_type β get the type of a completion item. literally that's it, that's the job π«Ά
πΈ SYNOPSIS πΈ
#include <ecoli/complete.h>
enum ec_comp_type ec_comp_item_get_type(
const struct ec_comp_item *item /* The completion item. */
);
so you hand it item, which is a const struct ec_comp_item * β the completion item, duh π
β and it hands you back an enum ec_comp_type. clean. no notes.
β RETURN VALUE β
it gives you the type of this item, and the options are:
EC_COMP_UNKNOWNEC_COMP_PARTIALEC_COMP_FULL
three little possibilities, one tiny enum, no cap π
ngl it's giving "one line of code, zero drama" and honestly? we love that for us.
π¦ SEE ALSO π¦
okay so this function does NOT exist in a vacuum, bestie, it has a whole friend group and you should meet them all: ec_comp_add_item(3), ec_comp_count(3), ec_comp_item_set_str(3), ec_complete(3), ec_comp_get_attrs(3), ec_comp_group_get_attrs(3), ec_comp_iter_next(3), ec_comp_item_get_node(3), ec_comp_iter_first(3), ec_comp_item_get_current(3), ec_comp_group_get_node(3), ec_complete_strvec_expand(3), ec_comp_free(3), ec_comp_get_cur_pstate(3), ec_complete_unknown(3), ec_complete_strvec(3), ec_comp_item_get_grp(3), ec_comp_item_get_str(3), ec_comp_item_set_display(3), ec_complete_child(3), ec_comp(3), ec_comp_item_get_display(3), ec_comp_item_get_completion(3), ec_comp_group_get_pstate(3), ec_comp_dump(3), ec_comp_merge(3), ec_comp_item_set_completion(3), ec_comp_get_cur_group(3).
that's the whole group chat right there, go read them, they ate π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the tea, bestie π this page came from libecoli and it's dated 2026-06-11 β stay hydrated, go call ec_comp_item_get_type, and slay π
β¨π
π¦ 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