API Guide
601355 Rev A API Functions 2-215
Functions
74 printf ( “Enter the number of
criteria expressions ==> “ );
75 numexpr = atoi(gets(input));
76
77 for ( j = 0 ; j < numexpr ; j++ )
78 {
79 /* create an expression for
this criteria */
80 exprh =
VS_Expression_Create();
81
82 if ( exprh ==
(VST_EXPRESSION_HANDLE) NULL )
83 {
84 /* could not allocate memory
for this */
85 /* handle */
86 rc = VSE_FALSE;
87 break;
88 }
89
90 printf ( “Enter relational
option (eq 1, gt 2, ge 3, lt 4, le
5, ne 6) ==> “ );
91 relopt = atoi(gets(input));
92
93 printf ( “Enter the media field
value ==> “ );
94 gets( value);
95
96 printf ( “Enter connective
operation (none 0, and 1, or 2)
==> “ );
97 conop = atoi(gets(input));
98
99 /* set the expression’s
parameters */
100 VS_Expression_SetFields (
exprh,
101 VSID_MOUNT_CRITERIA_OPT,
relopt,