AuRegisterEventHandler3nas
Add an event handler.
Usage
#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;
Arguments
- server
-
Specifies the connection to the audio server.
- value_mask
-
Specifies which values are checked to determine if this handler should handle an event. This should be an inclusive OR of
AuEventHandlerTypeMaskandAuEventHandlerIDMask.
- type
-
Specifies the type of event that are to be handled by this handler. This should be one of these constants:
AuEventTypeElementNotify,AuEventTypeGrabNotify, orAuEventTypeMonitorNotify.
- id
-
Specifies the source id of the event that are to be handled by this handler.
- callback
-
Specifies the procedure to handle the event.
- data
-
Specifies additional data to be passed to the event handler.
Overview
AuRegisterEventHandler registers an event handler for future use by AuDispatchEvent.
Releases
14 releases since Debian 2.1 (Slink); the text changed 6 times.