EC_COMP_ITEM_GET_TYPE(3)

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

πŸ’– 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_UNKNOWN
  • EC_COMP_PARTIAL
  • EC_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 (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