AuRegisterEventHandler(3)

✨ AuRegisterEventHandler(3) ✨

okay bestie, welcome to the Library Functions Manual πŸ’– this is AuRegisterEventHandler(3) and she is literally the girl who signs you up for event notifications. no cap. let's get into it πŸŽ€


🌸 NAME 🌸

AuRegisterEventHandler β€” add an event handler. that's it, that's the whole job, and she does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <audio/audiolib.h>

AuEventHandlerRec *AuRegisterEventHandler(server, value_mask, type, id,
callback data)
    AuServer *server;
    AuMask value_mask;
    int type;
    AuID id;
    AuBool (*callback)(AuServer *, AuEvent *, AuEventHandlerRec *);
    AuPointer data;

like yes the parameter list is doing a little too much but she's iconic for it ✨


🌈 ARGUMENTS 🌈

  • server β€” the connection to the audio server, aka your link to the whole situation 🫢
  • value_mask β€” tells you which values get checked to decide whether this handler should, in fact, handle an event. it should be an inclusive OR of AuEventHandlerTypeMask and AuEventHandlerIDMask. bestie it's giving "vibe check: passed" πŸ’…
  • type β€” the type of event this handler is gonna handle. pick exactly one of these constants:
    • AuEventTypeElementNotify
    • AuEventTypeGrabNotify
    • AuEventTypeMonitorNotify
  • id β€” the source id of the event that's getting handled by this handler πŸ”₯
  • callback β€” the procedure that actually handles the event. main character energy fr fr πŸ‘‘
  • data β€” extra data you wanna pass along to the event handler 🌸

πŸ’œ DESCRIPTION πŸ’œ

so AuRegisterEventHandler registers an event handler for future use by AuDispatchEvent. she's not doing the work right now, she's setting you up for the work later. preparation queen 🧚 periodt.


⭐ SEE ALSO ⭐

  • AuUnregisterEventHandler β€” the one who un-registers. yes they're sisters, don't ask 😭
  • audiolib β€” Network Audio System C Language Interface 🌈

and that's the whole page bestie!! this lil cutie came to you courtesy of audioutil version 1.9.4 β€” go forth and handle some events, you absolute legend πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from