API Guide
2-628 API Functions 601355 Rev A
80 enterpriseid =
(VST_ENTERPRISE_ID)
atol(gets(input));
81 VSCMD_CreateMediaClass_SetDefault
s(
82 VSID_CLASS_RPC_OPTION,
rpc_option,
83 VSID_TARGET_ENTERPRISE_ID,
enterpriseid,
84 VSID_ENDFIELD);
85 }
86
87 /* create the command handle */
88 /* Note that the command handle is
not */
89 /* destroyed in this routine, but in
*/
90 /* vst_dispatch when final status is
received. */
91 cmd = VS_Command_Create();
92 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
93 {
94 /* Send the command to the VolServ
software. */
95 /* Note that status is not
processed here. */
96 /* Instead, it is processed in the
*/
97 /* vst_dispatch routine. Also,
note that */
98 /* default values such as timeout,
value */
99 /* retry limit and priority are
set as */
100 /* default parameters. */
101 rc = VSCMD_CreateMediaClass(cmd,
102 VSID_MEDIA_CLASS_NAME,
mediaclass,
103 VSID_MEDIA_TYPE_NAME,
MediaTypeName,