![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/a/73/a73a4b49-d7f1-4c0b-9164-d43628ae57b6/a73a4b49-d7f1-4c0b-9164-d43628ae57b6-bg106.png)
API Guide
2-212 API Functions 601355 Rev A
VS_
Expression_
Create
VS_Expression_Create allocates a VolServ API
expression handle. An expression handle is used to pass
expression information to and from VolServ.
An expression handle has three parts: a relation operator (=, >,
<, >=, <=, <>), a connective option (and/or/none), and a
comparison value. A criteria handle uses expression handles to
build the comparison function when using mount-by-selection
criteria.
Synopsis
VST_EXPRESSION_HANDLE VS_Expression_Create
( void )
Arguments • handle = The expression handle to be created.
Return Values
VS_Expression_Create returns:
• An expression handle, if one can be allocated.
• NULL, if the expression handle cannot be allocated. An
appropriate error code is set in VSG_Error.
• VSE_ERR_OUTOFMEM - Memory allocation error.
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_create_mount_criteria
4*
5 * PURPOSE:
6 * This function creates the mount
criteria group
7 * handle and sets the values in it
according to
8 * user input.