AUPARSE_GET_TYPE(3)

πŸ“¦
version 4.2.1 Β· 3 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– AUPARSE_GET_TYPE(3) πŸ’–

okay bestie, so this is a page from the Linux Audit API manual β€” section 3, the library-call girlies β€” and it's literally all about one tiny little function that tells you what kind of record you're staring at. no cap, that's the whole vibe. πŸŽ€


✨ NAME ✨

auparse_get_type β€” get record's type πŸ‘‘


🌸 SYNOPSIS 🌸

#include <auparse.h>

int auparse_get_type(const auparse_state_t *au);"

(yes the trailing " is really in there, i'm not fixing it, i don't make the rules 🫢)


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. auparse_get_type will return the integer value for the current record of the current event. that's it. that's the function. she's simple, she's reliable, she's the friend who always texts back. πŸ’…

like, you're walking through an event record by record, and you just wanna know "hey, what is this thing" β€” boom, integer. iconic.


⭐ RETURN VALUE ⭐

auparse_get_type returns 0 if an error occurs 😭 β€” otherwise, it hands you the record's type. so if you get a 0, that's not a type, that's the universe telling you something went sideways. check yourself before you wreck yourself, fr fr. πŸ’€


🌈 SEE ALSO 🌈


πŸ’œ AUTHOR πŸ’œ

Steve Grubb ✨


and that's the whole page, bestie β€” brought to you by Red Hat, dated Mar 2016, back when this manual page first stepped onto the scene with main character energy. mwah. πŸŽ€πŸ’–πŸ¦‹