API Guide
2-334 API Functions 601355 Rev A
31 {
32 return ( (VST_MOUNT_HANDLE) NULL
);
33 }
34 /* prompt user for values */
35 printf ( “Mount by (1) Media ID or (2)
Media Class ==> “ );
36 entry = atoi(gets(input));
37
38 if ( entry == 1 )
39 {
40 printf ( “Enter Media ID for
mounting ==> “ );
41 gets(mediaid);
42 VS_Mount_SetFields ( mounth,
43 VSID_MEDIA_ID, mediaid,
44 VSID_ENDFIELD );
45 }
46 else
47 {
48 printf ( “Enter Media Class for
mounting ==> “ );
49 gets(mediaclass);
50 VS_Mount_SetFields ( mounth,
51 VSID_MEDIA_CLASS_NAME,
mediaclass,
52 VSID_ENDFIELD );
53
54 printf ( “Reclassify media (1) yes
or (2) no ==> “ );
55 entry = atoi(gets(input));
56
57 if ( entry == 1 )
58 {
59 printf ( “Enter Target Media
Class ==> “ );
60 gets(mediaclass);
61 VS_Mount_SetFields( mounth,
62
VSID
_TARGET_MEDIA_CLASS_NAME,
mediaclass,
63 VSID_ENDFIELD );