diff options
author | Steve Bavin <pondlife@pondlife.me> | 2008-03-28 12:51:33 +0000 |
---|---|---|
committer | Steve Bavin <pondlife@pondlife.me> | 2008-03-28 12:51:33 +0000 |
commit | 135cc757bda4714aca2831f7d75b7a4c1c4f7763 (patch) | |
tree | 2925838c63fdff85082f7717b78e273523a4f838 /apps/plugin.h | |
parent | 3d0b7c69016dc0dc1a4a81131340ac3024ecd356 (diff) | |
download | rockbox-135cc757bda4714aca2831f7d75b7a4c1c4f7763.tar.gz rockbox-135cc757bda4714aca2831f7d75b7a4c1c4f7763.zip |
Revert my earlier const madness, we'll keep the parameter lists simple.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16863 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 148c84a58e..1753272952 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -521,13 +521,13 @@ struct plugin_api { | |||
521 | int (*playlist_amount)(void); | 521 | int (*playlist_amount)(void); |
522 | int (*playlist_resume)(void); | 522 | int (*playlist_resume)(void); |
523 | int (*playlist_start)(int start_index, int offset); | 523 | int (*playlist_start)(int start_index, int offset); |
524 | void (*PREFIX(audio_play))(const long offset); | 524 | void (*PREFIX(audio_play))(long offset); |
525 | void (*audio_stop)(void); | 525 | void (*audio_stop)(void); |
526 | void (*audio_pause)(void); | 526 | void (*audio_pause)(void); |
527 | void (*audio_resume)(void); | 527 | void (*audio_resume)(void); |
528 | void (*audio_next)(void); | 528 | void (*audio_next)(void); |
529 | void (*audio_prev)(void); | 529 | void (*audio_prev)(void); |
530 | void (*audio_ff_rewind)(const long newtime); | 530 | void (*audio_ff_rewind)(long newtime); |
531 | struct mp3entry* (*audio_next_track)(void); | 531 | struct mp3entry* (*audio_next_track)(void); |
532 | int (*audio_status)(void); | 532 | int (*audio_status)(void); |
533 | bool (*audio_has_changed_track)(void); | 533 | bool (*audio_has_changed_track)(void); |
@@ -570,15 +570,15 @@ struct plugin_api { | |||
570 | bool (*option_screen)(struct settings_list *setting, | 570 | bool (*option_screen)(struct settings_list *setting, |
571 | bool use_temp_var, unsigned char* option_title); | 571 | bool use_temp_var, unsigned char* option_title); |
572 | bool (*set_option)(const char* string, const void* variable, | 572 | bool (*set_option)(const char* string, const void* variable, |
573 | const enum optiontype type, const struct opt_items* options, | 573 | enum optiontype type, const struct opt_items* options, |
574 | const int numoptions, void (*function)(int)); | 574 | int numoptions, void (*function)(int)); |
575 | bool (*set_bool_options)(const char* string, const bool* variable, | 575 | bool (*set_bool_options)(const char* string, const bool* variable, |
576 | const char* yes_str, const int yes_voice, | 576 | const char* yes_str, int yes_voice, |
577 | const char* no_str, const int no_voice, | 577 | const char* no_str, int no_voice, |
578 | void (*function)(bool)); | 578 | void (*function)(bool)); |
579 | bool (*set_int)(const unsigned char* string, const char* unit, const int voice_unit, | 579 | bool (*set_int)(const unsigned char* string, const char* unit, int voice_unit, |
580 | const int* variable, void (*function)(int), const int step, | 580 | const int* variable, void (*function)(int), int step, |
581 | const int min, const int max, | 581 | int min, int max, |
582 | void (*formatter)(char*, size_t, int, const char*) ); | 582 | void (*formatter)(char*, size_t, int, const char*) ); |
583 | bool (*set_bool)(const char* string, const bool* variable ); | 583 | bool (*set_bool)(const char* string, const bool* variable ); |
584 | 584 | ||
@@ -684,20 +684,20 @@ struct plugin_api { | |||
684 | 684 | ||
685 | #if (CONFIG_CODEC == SWCODEC) | 685 | #if (CONFIG_CODEC == SWCODEC) |
686 | /* buffering API */ | 686 | /* buffering API */ |
687 | int (*bufopen)(const char *file, size_t offset, const enum data_type type); | 687 | int (*bufopen)(const char *file, size_t offset, enum data_type type); |
688 | int (*bufalloc)(const void *src, const size_t size, const enum data_type type); | 688 | int (*bufalloc)(const void *src, size_t size, enum data_type type); |
689 | bool (*bufclose)(const int handle_id); | 689 | bool (*bufclose)(int handle_id); |
690 | int (*bufseek)(const int handle_id, const size_t newpos); | 690 | int (*bufseek)(int handle_id, size_t newpos); |
691 | int (*bufadvance)(const int handle_id, const off_t offset); | 691 | int (*bufadvance)(int handle_id, off_t offset); |
692 | ssize_t (*bufread)(const int handle_id, size_t size, void *dest); | 692 | ssize_t (*bufread)(int handle_id, size_t size, void *dest); |
693 | ssize_t (*bufgetdata)(const int handle_id, size_t size, void **data); | 693 | ssize_t (*bufgetdata)(int handle_id, size_t size, void **data); |
694 | ssize_t (*bufgettail)(const int handle_id, const size_t size, void **data); | 694 | ssize_t (*bufgettail)(int handle_id, size_t size, void **data); |
695 | ssize_t (*bufcuttail)(const int handle_id, size_t size); | 695 | ssize_t (*bufcuttail)(int handle_id, size_t size); |
696 | 696 | ||
697 | ssize_t (*buf_get_offset)(const int handle_id, void *ptr); | 697 | ssize_t (*buf_get_offset)(int handle_id, void *ptr); |
698 | ssize_t (*buf_handle_offset)(const int handle_id); | 698 | ssize_t (*buf_handle_offset)(int handle_id); |
699 | void (*buf_request_buffer_handle)(const int handle_id); | 699 | void (*buf_request_buffer_handle)(int handle_id); |
700 | void (*buf_set_base_handle)(const int handle_id); | 700 | void (*buf_set_base_handle)(int handle_id); |
701 | size_t (*buf_used)(void); | 701 | size_t (*buf_used)(void); |
702 | #endif | 702 | #endif |
703 | 703 | ||