ADIC 601355 Rev A Benutzerhandbuch

Seite von 1192
API Guide
2-344
API Functions
601355 Rev A
13
VST_BOOLEAN vst_notify( void )
14 #else
15
VST_BOOLEAN
16
vst_notify()
17 #endif
18 {
19  VST_BOOLEAN 
done, 
rc;
20  int 
i, 
count, 
timeout;
21  unsigned 
long 
prognum, 
versnum, procnum;
22  VST_TIME_OUT 
t;
23  VST_TABLE_HANDLE 
table;
24  VST_MEDIA_CLASS_NAME 
class, 
newclass;
25  VST_NOTIFY_HANDLE  h;
26
27  
rc = VSE_TRUE;
28  
done = VSE_FALSE;
29  
NumNotifies = 0;
30
31  
/* get parameters from user */
32  
printf(“*** Notify Parameters ***\n” 
);
33  
printf(“Program Number ==> “ );
34  
prognum = (VST_PROGRAM_NUMBER) 
atol(gets(input));
35
36  
printf(“Version Number ==> “ );
37  
versnum = (VST_VERSION_NUMBER) 
atol(gets(input));
38
39  
printf(“Procedure Number ==> “ );
40  
procnum = (VST_PROCEDURE_NUMBER) 
atol(gets(input));
41
42  
printf(“Number of Notifies to listen 
==> “ );
43  
count = atoi(gets(input));
44
45  
printf(“Timeout Value ==> “ );
46  
t = atoi(gets(input));