API Guide
2-626 API Functions 601355 Rev A
32 VST_ENTERPRISE_ID
enterpriseid;
33
34 /* get parameters from user */
35 printf(“*** Create Media Class
parameters ***\n” );
36 printf(“\nEnter Media Class Name
==>”);
37 gets( mediaclass);
38 printf(“\nEnter Media Type Name ==>
“);
39 gets( MediaTypeName);
40 printf(“\nEnter capacity==>”);
41 capacity = atoi(gets(input));
42 printf(“\nEnter class mount state (0)
no, (1) ok: “);
43 mountstate = atoi(gets(input));
44 printf(“\nEnter high mark ==>”);
45 highmark = atoi(gets(input));
46 printf(“\nEnter notify comment
==>”);
47 gets(comment);
48 printf(“\nEnter Option (0) no
callbacks, (1) standard, (2)
Enterprise==>”);
49 rpc_option = (VST_CLASS_RPC_OPTION)
atoi(gets(input));
50 if (rpc_option ==
VSE_CLASS_RPC_NONE)
51 {
52 VSCMD_CreateMediaClass_SetDefault
s(
53 VSID_CLASS_RPC_OPTION,
rpc_option,
54 VSID_ENDFIELD);
55 }
56 else if (rpc_option ==
VSE_CLASS_RPC_STANDARD)
57 {
58 printf(“\nEnter RPC Host Name
==>”);