summaryrefslogtreecommitdiff
path: root/apps/buffering.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/buffering.h')
-rw-r--r--apps/buffering.h16
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
78int bufopen(const char *file, size_t offset, enum data_type type, 78int bufopen(const char *file, off_t offset, enum data_type type,
79 void *user_data); 79 void *user_data);
80int bufalloc(const void *src, size_t size, enum data_type type); 80int bufalloc(const void *src, size_t size, enum data_type type);
81bool bufclose(int handle_id); 81bool 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
104enum data_type buf_handle_data_type(int handle_id);
105ssize_t buf_handle_remaining(int handle_id);
106bool buf_is_handle(int handle_id); 104bool buf_is_handle(int handle_id);
107ssize_t buf_handle_offset(int handle_id); 105int buf_handle_data_type(int handle_id);
108void buf_set_base_handle(int handle_id); 106off_t buf_filesize(int handle_id);
109size_t buf_length(void); 107off_t buf_handle_offset(int handle_id);
110size_t buf_used(void); 108off_t buf_handle_remaining(int handle_id);
111bool buf_pin_handle(int handle_id, bool pin); 109bool buf_pin_handle(int handle_id, bool pin);
112bool buf_signal_handle(int handle_id, bool signal); 110bool buf_signal_handle(int handle_id, bool signal);
113 111
112size_t buf_length(void);
113size_t buf_used(void);
114
114/* Settings */ 115/* Settings */
116void buf_set_base_handle(int handle_id);
115void buf_set_watermark(size_t bytes); 117void buf_set_watermark(size_t bytes);
116size_t buf_get_watermark(void); 118size_t buf_get_watermark(void);
117 119