X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fpage_command.c;h=97c09f52370a9a4b5044ff83d992163d94035159;hb=b95824f2825a116bcea7c65db079f0e0da4ac20e;hp=aa34f5dd1e10b373d5dcf1bf8b0e90f708289dde;hpb=4c1dc967fd477540e82566fff8d60e1c67ff3ca1;p=rugen diff --git a/src/page_command.c b/src/page_command.c index aa34f5d..97c09f5 100644 --- a/src/page_command.c +++ b/src/page_command.c @@ -1,6 +1,7 @@ /* * page_command.c -- Command Page Handling * Copyright (C) 2002-2003 Charles Yates + * Copyright (C) 2010 Dan Dennedy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,7 +29,6 @@ #include "interface.h" #include "support.h" #include "dv1394app.h" -#include "util.h" #include "page.h" typedef struct page_command_t @@ -55,7 +55,7 @@ static gboolean on_command_pressed( GtkWidget *button, gpointer user_data ) if ( dv1394app_get_parser( this->app ) != NULL ) { int index = 0; - valerie_response response = NULL; + mvcp_response response = NULL; GtkTextIter iter; widget = lookup_widget( this_page_get_widget( this ), "entry_command" ); @@ -72,14 +72,14 @@ static gboolean on_command_pressed( GtkWidget *button, gpointer user_data ) gtk_text_buffer_insert_at_cursor( buffer, "> ", -1 ); gtk_text_buffer_insert_at_cursor( buffer, command, -1 ); gtk_text_buffer_insert_at_cursor( buffer, "\n", -1 ); - valerie_execute( dv1394app_get_command( this->app ), 1024, "%s", command ); - response = valerie_get_last_response( dv1394app_get_command( this->app ) ); - for ( index = 0; index < valerie_response_count( response ); index ++ ) + mvcp_execute( dv1394app_get_command( this->app ), 1024, "%s", command ); + response = mvcp_get_last_response( dv1394app_get_command( this->app ) ); + for ( index = 0; index < mvcp_response_count( response ); index ++ ) { - if ( index != valerie_response_count( response ) - 1 || - strcmp( valerie_response_get_line( response, index ), "" ) ) + if ( index != mvcp_response_count( response ) - 1 || + strcmp( mvcp_response_get_line( response, index ), "" ) ) { - gtk_text_buffer_insert_at_cursor( buffer, valerie_response_get_line( response, index ), -1 ); + gtk_text_buffer_insert_at_cursor( buffer, mvcp_response_get_line( response, index ), -1 ); gtk_text_buffer_insert_at_cursor( buffer, "\n", -1 ); } } @@ -91,7 +91,7 @@ static gboolean on_command_pressed( GtkWidget *button, gpointer user_data ) } else { - beep( ); +// beep( ); } return FALSE;