summaryrefslogtreecommitdiff
path: root/apps/buffering.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 0cd81df93a..f70400a1ee 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -1444,7 +1444,6 @@ ssize_t bufcuttail(int handle_id, size_t size)
1444SECONDARY EXPORTED FUNCTIONS 1444SECONDARY EXPORTED FUNCTIONS
1445============================ 1445============================
1446 1446
1447buf_get_offset
1448buf_handle_offset 1447buf_handle_offset
1449buf_request_buffer_handle 1448buf_request_buffer_handle
1450buf_set_base_handle 1449buf_set_base_handle
@@ -1457,16 +1456,6 @@ They take care of the content of the structs, and rely on the linked list
1457management functions for all the actual handle management work. 1456management functions for all the actual handle management work.
1458*/ 1457*/
1459 1458
1460/* Get a handle offset from a pointer */
1461ssize_t buf_get_offset(int handle_id, void *ptr)
1462{
1463 const struct memory_handle *h = find_handle(handle_id);
1464 if (!h)
1465 return ERR_HANDLE_NOT_FOUND;
1466
1467 return (size_t)ptr - (size_t)&buffer[h->ridx];
1468}
1469
1470ssize_t buf_handle_offset(int handle_id) 1459ssize_t buf_handle_offset(int handle_id)
1471{ 1460{
1472 const struct memory_handle *h = find_handle(handle_id); 1461 const struct memory_handle *h = find_handle(handle_id);