API Guide
2-168 API Functions 601355 Rev A
14 VST_CRITERIAGROUP_HANDLE
vst_create_mount_criteria(void)
15 #else
16 VST_CRITERIAGROUP_HANDLE
vst_create_mount_criteria()
17 #endif
18 {
19 int i;
20 int j;
21 int numcrit;
22 int numexpr;
23 VST_BOOLEAN rc =
VSE_TRUE;
24 VST_EXPRESSION_HANDLE exprh;
25 VST_CRITERIA_HANDLE
criteriah;
26 VST_CRITERIAGROUP_HANDLE grouph;
27 VST_COUNT field;
28 VST_MOUNT_CRITERIA_ORDER sort;
29 VST_MEDIA_STAT_VALUE value;
30 VST_MOUNT_CRITERIA_OPT relopt;
31 VST_CONNECTIVE_OP conop;
32
33 /* create the criteria group */
34 grouph = VS_CriteriaGroup_Create();
35
36 if ( grouph ==
(VST_CRITERIAGROUP_HANDLE) NULL )
37 {
38 /* out of memory -- return */
39 return (
(VST_CRITERIAGROUP_HANDLE) NULL
);
40 }
41
42 /* populate the criteria group with
criteria */
43 /* (upto 5) */
44 printf ( “Enter number of Criteria in
group ==> “ );
45 numcrit = atoi(gets(input));
46