ADIC Digital Camera 601355 Rev A User Manual
API Guide
2-764
API Functions
601355 Rev A
31
32
/* get parameters from user */
33
printf(“*** Modify Media Parameters
***\n”);
34
printf ( “Enter the media id to
modify ==> “ );
35 gets(mediaid);
36
printf ( “Enter the batch name
(return for none) ==> “ );
37 gets(batch);
38
printf ( “Enter the manufacturer name
==> “ );
39 gets(manufacturer);
40
printf ( “Enter the modify media
option
(1-Delete/2-Update/3-Replace)==>
“ );
41 modopt
=
(VST_MODMEDIA_OPTION)
atoi(gets(input));
42
printf ( “Enter the number of user
statistics ==> “ );
43
num = atoi(gets(input));
44
45
/* loop through the number of user
statistics */
46
for ( i = 0 ; i < num && i <
VSD_MAX_MEDIA_STATS ; i++ )
47 {
48
printf ( “Enter field index[%d]
==> “, i );
49
field[i] = (VST_COUNT)
atoi(gets(input));
50
printf ( “Enter user
statistic[%d] ==> “, i );
51
gets(valuearray[i]);
52
value[i] = valuearray[i];
53
printf ( “Enter user stat
option[%d] (1-delete/2-update)
==>“, i );
54 option[i]
=
(VST_MEDIA_STAT_OPTION)
atoi(gets(input));