API Guide
601355 Rev A API Functions 2-221
Functions
71 if ( exprh ==
(VST_EXPRESSION_HANDLE) NULL )
72 {
73 /* could not allocate memory
for this */
74 /* handle */
75 rc = VSE_FALSE;
76 break;
77 }
78 printf ( “Enter relational
option (eq 1, gt 2, ge 3, lt 4, le
5, ne 6) ==> “ );
79 relopt = atoi(gets(input));
80 printf ( “Enter the media field
value ==> “ );
81 gets( value);
82 printf ( “Enter connective
operation (none 0, and 1, or 2)
==> “ );
83 conop = atoi(gets(input));
84 /* set the expression’s
parameters */
85 VS_Expression_SetFields (
exprh,
86 VSID_MOUNT_CRITERIA_OPT,
relopt,
87 VSID_CONNECTIVE_OP,
conop,
88 VSID_MEDIA_STAT_VALUE,
value,
89 VSID_ENDFIELD );
90 /* add the expression to the
criteria */
91 VS_Criteria_SetFields (
criteriah,
92 VSID_EXPRESSION_HANDLE_ENTRY, j,
exprh,
93 VSID_ENDFIELD );
94 }
95 /* add the criteria to the
criteria group */