/*
- * client.c -- dv1394d client demo
+ * client.c -- Valerie client demo
* Copyright (C) 2002-2003 Ushodaya Enterprises Limited
* Author: Charles Yates <charles.yates@pandora.be>
*
typedef struct
{
- char *description;
+ const char *description;
struct menu_item
{
- char *option;
+ const char *option;
demo_function function;
}
array[ 50 ];
terminated = 1;
printf( "Command> " );
- if ( chomp( get_string( command, 10240, "" ) ) != NULL )
+ if ( chomp( io_get_string( command, 10240, "" ) ) != NULL )
{
if ( strcmp( command, "" ) )
{
if ( refresh )
{
- char *action = "Load & Play";
+ const char *action = "Load & Play";
if ( demo->queues[ demo->selected_unit ].mode )
action = "Queue";
printf( "%s from %s\n\n", action, demo->current_directory );
valerie_error_code dv_demo_run_menu( dv_demo demo, dv_demo_menu menu )
{
- char *items = "123456789abcdefghijklmnopqrstuvwxyz";
+ const char *items = "123456789abcdefghijklmnopqrstuvwxyz";
int refresh_menu = 1;
int terminated = 0;
int item_count = 0;