gensio_acc_get_type(3)

πŸ“¦
version 3.0.4 Β· 2 versions
  • 3.0.4 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.6.2 Β· debian bookworm, ubuntu jammy
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– gensio_acc_get_type β€” from the Library Functions Manual ✨

okay bestie, sit down, we're doing the gensio accepter info dump and honestly? it's giving "short but important." πŸŽ€


🌸 NAME 🌸

gensio_acc_get_type, gensio_acc_is_reliable, gensio_acc_is_packet, gensio_acc_is_message, gensio_acc_is_mux β€” these five cuties hand you general info about a gensio accepter. that's it, that's the job. πŸ‘‘


✨ SYNOPSIS ✨

#include <gensio/gensio.h>

const char *gensio_acc_get_type(struct gensio *io,
                    unsigned int depth);

bool gensio_acc_is_reliable(struct gensio *io);

bool gensio_acc_is_packet(struct gensio *io);

bool gensio_acc_is_mux(struct gensio *io);

like, yes, gensio_acc_is_message is in the NAME section and the DESCRIPTION section but not up here β€” i don't make the rules, i just report them fr fr πŸ™ˆ


πŸ¦‹ DESCRIPTION πŸ¦‹

gensio_acc_get_type hands you the type string for the gensio accepter. if depth is 0, you get the accepter itself. if depth is greater than 0, you get one of its children instead β€” the deeper you go, the further down the family tree you're peeking. 🌈

and if depth is bigger than the number of children that exist? it returns NULL. no children, no string, no cap. πŸ’€


gensio_acc_is_reliable returns true if the genios produced by this accepter are reliable. yes, we're being normal about it. for the full tea, go read gensio_is_reliable(3). β˜•


gensio_acc_is_packet returns whether the genios produced by this accepter are packet-oriented. the details live in gensio_is_packet(3), bestie, go look. πŸ“¦


gensio_acc_is_message returns whether the genios produced by this accepter are message-oriented. see gensio_is_message(3) for the whole story. πŸ’Œ


gensio_acc_is_mux returns whether the genios produced by this accepter are capable of multiplexing. that's main character energy, honestly. gensio_is_mux(3) has the details. πŸ‘‘


lowkey a vibe check: these are all just yes/no answers (except gensio_acc_get_type, which is the one actually handing out strings). no surprises, no drama, just facts. πŸ’…

🫢 SEE ALSO 🫢


and that's the whole page, bestie, you ate it. πŸ“ this little gem is dated 27 Feb 2019 and comes to you straight from the gensio_acc_get_type(3) page β€” go forth and check your accepters, periodt. πŸ’œβœ¨

πŸ“¦ where this page comes from