API Guide
2-538 API Functions 601355 Rev A
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_checkout_execute
4*
5 * PURPOSE:
6 * This function sends a checkout command
to the
7 * VolServ software, prompting for all
values needed.
8*
9 * PARAMETERS:
10 * none
11 *
12 ****************************************
*********/
13 #ifdef ANSI_C
14 VST_BOOLEAN
vst_checkout_execute(void)
15 #else
16 VST_BOOLEAN vst_checkout_execute()
17 #endif
18 {
19 VST_BOOLEAN rc = VSE_FALSE;
20 int count;
21 char *
medialist[VST_MAX_ITEMS];
22 VST_COMMENT comment;
23 VST_COMMAND_HANDLE cmd;
24
25 /* get parameters from user */
26 printf(ā€œ*** Check-out Parameters
***\nā€ );
27 printf(ā€œ\nEnter Checkout Comment ā€œ);
28 gets( comment);
29 count = vst_getmedialist(medialist,
VST_MAX_ITEMS);
30 /* create the command handle */
31 /* Note that the command handle is
not */
32 /* destroyed in this routine, but in
*/