API Guide
2-126 API Functions 601355 Rev A
66 VS_Criteria_SetFields (
criteriah,
67 VSID_FIELD, field,
68 VSID_MOUNT_CRITERIA_ORDER, sort
69 VSID_ENDFIELD );
70
71 /* populate the critera with
expressions */
72 /* (up to 4) */
73 printf ( “Enter the number of
criteria expressions ==> “ );
74 numexpr = atoi(gets(input));
75
76 for ( j = 0 ; j < numexpr ; j++ )
77 {
78 /* create an expression for this
criteria */
79 exprh =
VS_Expression_Create();
80
81 if ( exprh ==
(VST_EXPRESSION_HANDLE) NULL )
82 {
83 /* could not allocate memory
for this handle */
84 rc = VSE_FALSE;
85 break;
86 }
87
88 printf ( “Enter relational
option (eq 1, gt 2, ge 3, lt 4, le
5, ne 6) ==> “ );
89 relopt = atoi(gets(input));
90
91 printf ( “Enter the media field
value ==> “ );
92 gets( value);
93
94 printf ( “Enter connective
operation (none 0, and 1, or 2)
==> “ );