AuRegisterEventHandler (3)
Leading comments
$NCDId: @(#)AuREvtHn.man,v 1.1 1994/09/27 00:33:45 greg Exp $ copyright 1994 Steven King portions are * Copyright 1993 Network Computing Devices, Inc. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name Network Computing...
Name
AuRegisterEventHandler - add an event handler.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;
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 AuEventHandlerTypeMask and AuEventHandlerIDMask.
- type
- Specifies the type of event that are to be handled by this handler. This should be one of these constants: AuEventTypeElementNotify, AuEventTypeGrabNotify, or AuEventTypeMonitorNotify.
- 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.
Description
AuRegisterEventHandler registers an event handler for future use by AuDispatchEvent.See Also
AuUnregisterEventHandler.audiolib - Network Audio System C Language Interface