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