
Name: |
int grtGetEvent (int start_chan, int end_chan, | |
Inputs: |
int start_chan |
|
|
int end_chan |
|
|
GRT_EVENT *event |
|
Outputs: |
GRT_EVENT *event |
|
Returns: |
GRT_SUCCESS |
|
|
GRT_INVALID_START_ |
|
|
GRT_INVALID_END_ |
|
|
GRT_NO_DISPATCHER |
|
|
GRT_NO_EVENT |
|
GRT_UNKNOWN_EVENT |
| |
GRT_NOT_INIT |
| |
GRT_ANOTHER_THREAD |
| |
GRT_CONTROL_BUSY |
| |
Includes: |
genra.h |
|
The grtGetEvent( ) function checks if an event has occurred on any channel in the range of channels given. The function returns after the first event occurs and the other channels are not checked.
#include "genra.h"
GRT_EVENT event;
int status, chan = 1;
/* block for any event */
while ((status = grtGetEvent(chan, chan, &event)) == GRT_NO_EVENT)
Sleep(1000L);
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation