diff options
Diffstat (limited to 'apps/buffering.h')
-rw-r--r-- | apps/buffering.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/buffering.h b/apps/buffering.h index 4d4cb39df3..fcffcf086c 100644 --- a/apps/buffering.h +++ b/apps/buffering.h | |||
@@ -75,7 +75,7 @@ bool buffering_reset(char *buf, size_t buflen); | |||
75 | * NOTE: Tail operations are only legal when the end of the file is buffered. | 75 | * NOTE: Tail operations are only legal when the end of the file is buffered. |
76 | ****************************************************************************/ | 76 | ****************************************************************************/ |
77 | 77 | ||
78 | int bufopen(const char *file, size_t offset, enum data_type type, | 78 | int bufopen(const char *file, off_t offset, enum data_type type, |
79 | void *user_data); | 79 | void *user_data); |
80 | int bufalloc(const void *src, size_t size, enum data_type type); | 80 | int bufalloc(const void *src, size_t size, enum data_type type); |
81 | bool bufclose(int handle_id); | 81 | bool bufclose(int handle_id); |
@@ -101,17 +101,19 @@ ssize_t bufcuttail(int handle_id, size_t size); | |||
101 | * buf_back_off_storage: tell buffering thread to take it easy | 101 | * buf_back_off_storage: tell buffering thread to take it easy |
102 | ****************************************************************************/ | 102 | ****************************************************************************/ |
103 | 103 | ||
104 | enum data_type buf_handle_data_type(int handle_id); | ||
105 | ssize_t buf_handle_remaining(int handle_id); | ||
106 | bool buf_is_handle(int handle_id); | 104 | bool buf_is_handle(int handle_id); |
107 | ssize_t buf_handle_offset(int handle_id); | 105 | int buf_handle_data_type(int handle_id); |
108 | void buf_set_base_handle(int handle_id); | 106 | off_t buf_filesize(int handle_id); |
109 | size_t buf_length(void); | 107 | off_t buf_handle_offset(int handle_id); |
110 | size_t buf_used(void); | 108 | off_t buf_handle_remaining(int handle_id); |
111 | bool buf_pin_handle(int handle_id, bool pin); | 109 | bool buf_pin_handle(int handle_id, bool pin); |
112 | bool buf_signal_handle(int handle_id, bool signal); | 110 | bool buf_signal_handle(int handle_id, bool signal); |
113 | 111 | ||
112 | size_t buf_length(void); | ||
113 | size_t buf_used(void); | ||
114 | |||
114 | /* Settings */ | 115 | /* Settings */ |
116 | void buf_set_base_handle(int handle_id); | ||
115 | void buf_set_watermark(size_t bytes); | 117 | void buf_set_watermark(size_t bytes); |
116 | size_t buf_get_watermark(void); | 118 | size_t buf_get_watermark(void); |
117 | 119 | ||