API Guide
2-366 API Functions 601355 Rev A
63 VSID_TIMEOUT_VALUE, t,
64 VSID_ENDFIELD );
65
66 done = VSE_FALSE;
67 while ( ! done )
68 {
69 /* “listen” for callbacks and
act on the */
70 /* error code */
71 switch ( (i = VS_Notify_Listen(
h )) )
72 {
73 case VSE_ERR_TIMEOUT:
74 printf(“Timed out\n” );
75 timeout--;
76 break;
77 case VSE_ERR_NONE:
78 /* This is the successful
case. */
79 /* Nothing is printed
here because */
80 /* the notify handle is
printed in */
81 /* vst_notify_dispatch
*/
82 break;
83 default:
84 printf(“Select Error
%d\n”, i );
85 rc = VSE_FALSE;
86 done = VSE_TRUE;
87 break;
88 }
89
90 if ( NumNotifies > count )
91 {
92 printf(“Number of Notifies
reached\n” );
93 done = VSE_TRUE;
94 }
95
96 if ( timeout <= 0 )