ADIC Digital Camera 601355 Rev A User Manual

Page of 1192
API Guide
601355 Rev A
API Functions
2-765
Functions
55  }
56
57  
/* Create the command (assume that 
the api is */
58
/* initialized). Note that status is 
processed */
59
/* in the vst_dispatch routine. */
60  
/* Also, the command handle created 
here is */
61  
/* destroyed in the dispatch routine. 
*/
62  
cmdh = VS_Command_Create();
63  
if (cmdh != (VST_COMMAND_HANDLE) 
NULL)
64  {
65  
/* execute the modify media command 
*/
66  
/* common parameters such as 
priority, timeout */
67  
/* value, etc, have been set through 
the */
68  
/* VS_Global_SetFields or */
69
/* VSCMD_ModifyMedia_SetDefaults. */
70  
rc = VSCMD_ModifyMedia ( cmdh,
71  VSID_MEDIA_ID, 
mediaid,
72  VSID_BATCH_NAME, 
batch,
73  VSID_MANUFACTURER, 
manufacturer,
74  VSID_MODMEDIA_OPTION, 
modopt,
75  VSID_FIELD_LIST, 
num, field,
76  VSID_MEDIA_STAT_VALUE_LIST,
num, value,
77  VSID_MEDIA_STAT_OPTION_LIST,
num, option,
78  VSID_ENDFIELD 
);
79  }
80
81  
return ( rc );