AuAnyEvent(3)
β¨ AuAnyEvent β bestie edition β¨
okay so this is a page from the Library Functions Manual, and it's all about AuAnyEvent β the generic event struct from the Network Audio System's C language interface (audiolib). sit down, grab a boba, we're gonna understand this together π
π NAME π
AuAnyEvent β any event structure. literally the blueprint that every event type has in common. she's the blueprint, she's the moment. π
πΈ STRUCTURES πΈ
first up, the big union. AuEvent is a union that holds all the event types, and AuAnyEvent is just one of the members chilling inside it (marked here as auany, with . . . standing in for all the other members):
#include <audio/audiolib.h>
typedef union _AuEvent
{
. . .
AuAnyEvent auany;
. . .
}AuEvent;
and here's the actual struct, in all her glory:
typedef struct _AuAnyEvent
{
int type;
AuUint32 serial;
AuBool send_event;
AuServer *server;
AuTime time;
AuID id;
}AuAnyEvent;
π¦ MEMBERS π¦
typeβ the event type. the currently defined event types areAuEventTypeElementNotify,AuEventTypeGrabNotify, andAuEventTypeMonitorNotify. that's the whole roster rn, no cap.serialβ the serial ID of the event, expanded from the 16 bit value that the server sent. she got β¨enlargedβ¨.send_eventβAuTrueif the event came from aSendEventprotocol request. that's the whole vibe check right there.serverβ the connection to the audio server that the event was read from. it's giving "where did you come from, where did you go".timeβ the server time in milliseconds when the event was generated. timestamps, iconic.idβ the ID of the source of the event. who's the main character that caused this? it's in here.
π DESCRIPTION π
okay so the whole point: AuAnyEvent is a generic event structure containing the members that are common to all event types. like, every event struct has these same fields, so this is the one you can look at when you don't care which specific event type you've got. the way that she's universal?? obsessed. π«Ά
π SEE ALSO π
AuElementNotifyEventAuMonitorNotifyEventAuGrabNotifyEventAuErrorEventaudiolibβ Network Audio System C Language Interface
that's the page bestie, you ate it up π β¨
this lil writeup came from theaudiolib - eventscorner of the docs, version 1.9.5, and it's filed underAuAnyEvent(3). mwah, bye!! πππ¦πΈ
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms