Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
+ const char *description;
demo_function function;
}
array[ 50 ];
demo_function function;
}
array[ 50 ];
- 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 );
if ( demo->queues[ demo->selected_unit ].mode )
action = "Queue";
printf( "%s from %s\n\n", action, demo->current_directory );
-char *io_get_string( char *output, int maxlength, char *use )
+char *io_get_string( char *output, int maxlength, const char *use )
{
char *value = NULL;
strcpy( output, use );
{
char *value = NULL;
strcpy( output, use );
extern char *chomp( char * );
extern char *trim( char * );
extern char *strip_quotes( char * );
extern char *chomp( char * );
extern char *trim( char * );
extern char *strip_quotes( char * );
-extern char *io_get_string( char *, int, char * );
+extern char *io_get_string( char *, int, const char * );
extern int *get_int( int *, int );
extern void term_init( );
extern int term_read( );
extern int *get_int( int *, int );
extern void term_init( );
extern int term_read( );
-void miracle_log( int priority, char *format, ... )
+void miracle_log( int priority, const char *format, ... )
{
va_list list;
va_start( list, format );
{
va_list list;
va_start( list, format );
};
void miracle_log_init( enum log_output method, int threshold );
};
void miracle_log_init( enum log_output method, int threshold );
-void miracle_log( int priority, char *format, ... );
+void miracle_log( int priority, const char *format, ... );
/** Execute a command.
*/
/** Execute a command.
*/
-valerie_error_code valerie_execute( valerie this, size_t size, char *format, ... )
+valerie_error_code valerie_execute( valerie this, size_t size, const char *format, ... )
{
valerie_error_code error = valerie_server_unavailable;
char *command = malloc( size );
{
valerie_error_code error = valerie_server_unavailable;
char *command = malloc( size );
/** Set a unit configuration property.
*/
/** Set a unit configuration property.
*/
-valerie_error_code valerie_unit_set( valerie this, int unit, char *name, char *value )
+valerie_error_code valerie_unit_set( valerie this, int unit, const char *name, const char *value )
{
return valerie_execute( this, 1024, "USET U%d %s=%s", unit, name, value );
}
{
return valerie_execute( this, 1024, "USET U%d %s=%s", unit, name, value );
}
extern valerie_error_code valerie_unit_clear_in( valerie, int );
extern valerie_error_code valerie_unit_clear_out( valerie, int );
extern valerie_error_code valerie_unit_clear_in_out( valerie, int );
extern valerie_error_code valerie_unit_clear_in( valerie, int );
extern valerie_error_code valerie_unit_clear_out( valerie, int );
extern valerie_error_code valerie_unit_clear_in_out( valerie, int );
-extern valerie_error_code valerie_unit_set( valerie, int, char *, char * );
+extern valerie_error_code valerie_unit_set( valerie, int, const char *, const char * );
extern valerie_error_code valerie_unit_get( valerie, int, char * );
extern valerie_error_code valerie_unit_status( valerie, int, valerie_status );
extern valerie_error_code valerie_unit_transfer( valerie, int, int );
extern valerie_error_code valerie_unit_get( valerie, int, char * );
extern valerie_error_code valerie_unit_status( valerie, int, valerie_status );
extern valerie_error_code valerie_unit_transfer( valerie, int, int );
extern char *valerie_error_description( valerie_error_code );
/* Courtesy functions. */
extern char *valerie_error_description( valerie_error_code );
/* Courtesy functions. */
-extern valerie_error_code valerie_execute( valerie, size_t, char *, ... );
+extern valerie_error_code valerie_execute( valerie, size_t, const char *, ... );
extern valerie_error_code valerie_push( valerie, mlt_service, size_t, char *, ... );
/* Close function. */
extern valerie_error_code valerie_push( valerie, mlt_service, size_t, char *, ... );
/* Close function. */
/** Write formatted text to the response.
*/
/** Write formatted text to the response.
*/
-int valerie_response_printf( valerie_response response, size_t size, char *format, ... )
+int valerie_response_printf( valerie_response response, size_t size, const char *format, ... )
{
int length = 0;
char *text = malloc( size );
{
int length = 0;
char *text = malloc( size );
extern char *valerie_response_get_line( valerie_response, int );
extern int valerie_response_count( valerie_response );
extern void valerie_response_set_error( valerie_response, int, const char * );
extern char *valerie_response_get_line( valerie_response, int );
extern int valerie_response_count( valerie_response );
extern void valerie_response_set_error( valerie_response, int, const char * );
-extern int valerie_response_printf( valerie_response, size_t, char *, ... );
+extern int valerie_response_printf( valerie_response, size_t, const char *, ... );
extern int valerie_response_write( valerie_response, const char *, int );
extern void valerie_response_close( valerie_response );
extern int valerie_response_write( valerie_response, const char *, int );
extern void valerie_response_close( valerie_response );