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/buffering.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/buffering.h')
-rw-r--r-- | apps/buffering.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/apps/buffering.h b/apps/buffering.h index abe8f608c6..bc61ec5e6d 100644 --- a/apps/buffering.h +++ b/apps/buffering.h | |||
@@ -56,7 +56,7 @@ enum callback_event { | |||
56 | void buffering_init(void); | 56 | void buffering_init(void); |
57 | 57 | ||
58 | /* Reset the buffering system */ | 58 | /* Reset the buffering system */ |
59 | bool buffering_reset(char *buf, const size_t buflen); | 59 | bool buffering_reset(char *buf, size_t buflen); |
60 | 60 | ||
61 | 61 | ||
62 | /*************************************************************************** | 62 | /*************************************************************************** |
@@ -80,15 +80,15 @@ bool buffering_reset(char *buf, const size_t buflen); | |||
80 | 80 | ||
81 | #define BUF_MAX_HANDLES 256 | 81 | #define BUF_MAX_HANDLES 256 |
82 | 82 | ||
83 | int bufopen(const char *file, size_t offset, const enum data_type type); | 83 | int bufopen(const char *file, size_t offset, enum data_type type); |
84 | int bufalloc(const void *src, const size_t size, const enum data_type type); | 84 | int bufalloc(const void *src, size_t size, enum data_type type); |
85 | bool bufclose(const int handle_id); | 85 | bool bufclose(int handle_id); |
86 | int bufseek(const int handle_id, const size_t newpos); | 86 | int bufseek(int handle_id, size_t newpos); |
87 | int bufadvance(const int handle_id, const off_t offset); | 87 | int bufadvance(int handle_id, off_t offset); |
88 | ssize_t bufread(const int handle_id, size_t size, void *dest); | 88 | ssize_t bufread(int handle_id, size_t size, void *dest); |
89 | ssize_t bufgetdata(const int handle_id, size_t size, void **data); | 89 | ssize_t bufgetdata(int handle_id, size_t size, void **data); |
90 | ssize_t bufgettail(const int handle_id, const size_t size, void **data); | 90 | ssize_t bufgettail(int handle_id, size_t size, void **data); |
91 | ssize_t bufcuttail(const int handle_id, size_t size); | 91 | ssize_t bufcuttail(int handle_id, size_t size); |
92 | 92 | ||
93 | 93 | ||
94 | /*************************************************************************** | 94 | /*************************************************************************** |
@@ -102,10 +102,10 @@ ssize_t bufcuttail(const int handle_id, size_t size); | |||
102 | * buf_used: Total amount of buffer space used (including allocated space) | 102 | * buf_used: Total amount of buffer space used (including allocated space) |
103 | ****************************************************************************/ | 103 | ****************************************************************************/ |
104 | 104 | ||
105 | ssize_t buf_get_offset(const int handle_id, void *ptr); | 105 | ssize_t buf_get_offset(int handle_id, void *ptr); |
106 | ssize_t buf_handle_offset(const int handle_id); | 106 | ssize_t buf_handle_offset(int handle_id); |
107 | void buf_request_buffer_handle(const int handle_id); | 107 | void buf_request_buffer_handle(int handle_id); |
108 | void buf_set_base_handle(const int handle_id); | 108 | void buf_set_base_handle(int handle_id); |
109 | size_t buf_used(void); | 109 | size_t buf_used(void); |
110 | 110 | ||
111 | 111 | ||
@@ -123,9 +123,9 @@ size_t buf_used(void); | |||
123 | ****************************************************************************/ | 123 | ****************************************************************************/ |
124 | 124 | ||
125 | #define MAX_BUF_CALLBACKS 4 | 125 | #define MAX_BUF_CALLBACKS 4 |
126 | typedef void (*buffering_callback)(const enum callback_event ev, const int value); | 126 | typedef void (*buffering_callback)(enum callback_event ev, int value); |
127 | bool register_buffering_callback(const buffering_callback func); | 127 | bool register_buffering_callback(buffering_callback func); |
128 | void unregister_buffering_callback(const buffering_callback func); | 128 | void unregister_buffering_callback(buffering_callback func); |
129 | 129 | ||
130 | /* Settings */ | 130 | /* Settings */ |
131 | enum { | 131 | enum { |