API Guide
2-146 API Functions 601355 Rev A
79 exprh =
VS_Expression_Create();
80
81 if ( exprh ==
(VST_EXPRESSION_HANDLE) NULL )
82 {
83 /* could not allocate memory
for this */
84 /* handle */
85 rc = VSE_FALSE;
86 break;
87 }
88
89 printf ( “Enter relational
option (eq 1, gt 2, ge 3, lt 4, le
5, ne 6) ==> “ );
90 relopt = atoi(gets(input));
91
92 printf ( “Enter the media field
value ==> “ );
93 gets( value);
94
95 printf ( “Enter connective
operation (none 0, and 1, or 2)
==> “ );
96 conop = atoi(gets(input));
97
98 /* set the expression’s
parameters */
99 VS_Expression_SetFields (
exprh,
100 VSID_MOUNT_CRITERIA_OPT,
relopt,
101 VSID_CONNECTIVE_OP,
conop,
102 VSID_MEDIA_STAT_VALUE,
value,
103 VSID_ENDFIELD );
104
105 /* add the expression to the
criteria */