auscanfortypedevent(3) [debian man page]
AuScanForTypedEvent(3) Library Functions Manual AuScanForTypedEvent(3) Name AuScanForTypedEvent - return the first event of a specific type Synopsis #include <audio/audiolib.h> AuBool AuScanForTypedEvent(server, mode, dequeue, type, event) AuServer *server; int mode; AuBool dequeue; int type; AuEvent *event; /* RETURN */ Arguments server Specifies the connection to the audio server. mode Specifies how far to look for a match. This should be one of these constants: AuEventsQueuedAlready, AuEventsQueuedAfterReading, or AuEventsQueuedAfterFlush. dequeue Specifies if a matching event is found, should it be removed from the queue. type Specifies the type of event to match. The type should be one of these constants: AuEventTypeElementNotify, AuEventTypeGrabNo- tify, or AuEventTypeMonitorNotify. event Returns the matching event if found. Description AuScanForTypedEvent scans the event queue looking for the first event that matches type. If mode is AuEventsQueuedAlready, AuScanForType- dEvent only checks for events already in the queue. If mode is AuEventsQueuedAfterReading, and a matching event isn't found already in the queue, AuScanForTypedEvent attempts to read more events out of the application's connection. If mode is AuEventsQueuedAfterFlush and a matching event isn't already in the queue or isn't waiting to be read, AuScanForTypedEvent flushes the output queue and attempts to read more events out of the application's connection. If dequeue is AuTrue, and a matching event is found, it is removed from the queue. See Also AuEventsQueued, AuScanEvents, AuNextEvent. audiolib - Network Audio System C Language Interface audiolib - event handling 1.9.3 AuScanForTypedEvent(3)
Check Out this Related Man Page
XFlush(3X11) MIT X11R4 XFlush(3X11) Name XFlush, XSync, XEventsQueued, XPending - handle output buffer or event queue Syntax XFlush(display) Display *display; XSync(display, discard) Display *display; Bool discard; int XEventsQueued(display, mode) Display *display; int mode; int XPending(display) Display *display; Arguments discard Specifies a Boolean value that indicates whether discards all events on the event queue. display Specifies the connection to the X server. mode Specifies the mode. You can pass or Description The function flushes the output buffer. Most client applications need not use this function because the output buffer is automatically flushed as needed by calls to and Events generated by the server may be enqueued into the library's event queue. The function flushes the output buffer and then waits until all requests have been received and processed by the X server. Any errors gen- erated must be handled by the error handler. For each error event received by Xlib, calls the client application's error handling routine. Any events generated by the server are enqueued into the library's event queue. Finally, if you passed does not discard the events in the queue. If you passed discards all events in the queue, including those events that were on the queue before was called. Client applications seldom need to call If mode is returns the number of events already in the event queue (and never performs a system call). If mode is returns the number of events already in the queue if the number is nonzero. If there are no events in the queue, flushes the output buffer, attempts to read more events out of the application's connection, and returns the number read. If mode is returns the number of events already in the queue if the number is nonzero. If there are no events in the queue, attempts to read more events out of the application's connection without flushing the output buffer and returns the number read. always returns immediately without I/O if there are events already in the queue. with mode is identical in behavior to with mode is iden- tical to the function. The function returns the number of events that have been received from the X server but have not been removed from the event queue. is identical to with the mode specified. See Also AllPlanes(3X11), XIfEvent(3X11), XNextEvent(3X11), XPutBackEvent(3X11) X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys XFlush(3X11)