AUPARSE_GET_FIELD_TYPE(3)
π NAME π
auparse_get_field_type β bestie, it tells you what kind of data is sitting in the field you're looking at right now β¨
πΈ SYNOPSIS πΈ
#include <auparse.h>
int auparse_get_field_type(const auparse_state_t *au);"
π¦ DESCRIPTION π¦
okay so picture this: you're deep in an audit event, you've got a current event, that event has a current record, and that record has a current field. Very main character of it.
auparse_get_field_type hands you back a value from the auparse_type_t enum, and that value describes the kind of data living in that current field. That's it, that's the whole vibe check π
π RETURN VALUE π
It returns AUPARSE_TYPE_UNCLASSIFIED when the field's data type has no known description β or when it's an integer. Otherwise it returns another enum, no cap.
β οΈ heads up bestie: fields with the type AUPARSE_TYPE_ESCAPED must be interpreted to actually access their value, because those fields' raw value is encoded. Do not just read it raw, I am begging π
π SEE ALSO π
auparse_get_field_name(3)β the sibling, the duo, the iconic pair π«Ά
π AUTHOR π
Steve Grubb β the legend himself π
Red Hat Β· Sept 2008 β yeah she's been serving since 2008 and still ate πβ¨ periodt πΈπ¦
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libauparse-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libauparse-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libauparse-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms