X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fhumperdink%2Fclient.c;h=afd2bbda7205dc6f0aead2921ce59551dab72b29;hb=97bdd568301d386c96de4390a864ff952a808595;hp=e93c2f8d918abce8ab963c0ceec5582e176fe892;hpb=5c299d1ae6f3535df35b3f30bae0476a1ca50aa6;p=melted diff --git a/src/humperdink/client.c b/src/humperdink/client.c index e93c2f8..afd2bbd 100644 --- a/src/humperdink/client.c +++ b/src/humperdink/client.c @@ -1,5 +1,5 @@ /* - * client.c -- dv1394d client demo + * client.c -- Valerie client demo * Copyright (C) 2002-2003 Ushodaya Enterprises Limited * Author: Charles Yates * @@ -47,10 +47,10 @@ typedef valerie_error_code (*demo_function)( dv_demo ); typedef struct { - char *description; + const char *description; struct menu_item { - char *option; + const char *option; demo_function function; } array[ 50 ]; @@ -415,7 +415,7 @@ valerie_error_code dv_demo_execute( dv_demo demo ) char command[ 10240 ]; int terminated = 0; - printf( "DV1394D Shell\n" ); + printf( "Miracle Shell\n" ); printf( "Enter an empty command to exit.\n\n" ); while ( !terminated ) @@ -423,7 +423,7 @@ valerie_error_code dv_demo_execute( dv_demo demo ) terminated = 1; printf( "Command> " ); - if ( chomp( get_string( command, 10240, "" ) ) != NULL ) + if ( chomp( io_get_string( command, 10240, "" ) ) != NULL ) { if ( strcmp( command, "" ) ) { @@ -613,7 +613,7 @@ valerie_error_code dv_demo_load( dv_demo demo ) 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 ); @@ -931,7 +931,7 @@ valerie_error_code dv_demo_transport( dv_demo demo ) 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; @@ -1023,4 +1023,3 @@ void dv_demo_close( dv_demo demo ) { free( demo ); } -