API Guide
2-774 API Functions 601355 Rev A
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));
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. */