summaryrefslogtreecommitdiff
path: root/firmware/include/buflib.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-02-02 14:43:45 +0100
committerThomas Martitz <kugel@rockbox.org>2014-02-02 19:40:38 +0100
commit4ce1deacfd4e5440cc82237ebc5fafbaeea64763 (patch)
tree7ff4664819704fd890d3e5ea95349c8500f9c4c7 /firmware/include/buflib.h
parentd66346789ccdf685a6720a739b88f194f56a60e2 (diff)
downloadrockbox-4ce1deacfd4e5440cc82237ebc5fafbaeea64763.zip
rockbox-4ce1deacfd4e5440cc82237ebc5fafbaeea64763.tar.gz
rockbox-4ce1deacfd4e5440cc82237ebc5fafbaeea64763.tar.bz2
rockbox-4ce1deacfd4e5440cc82237ebc5fafbaeea64763.tar.xz
buflib: Properly support allocations without any name, to avoid wasting space
in micro-allocation scenarios. Change-Id: I97a065bcfba8e0fda9b1670445e839e267c769c8
Diffstat (limited to 'firmware/include/buflib.h')
-rw-r--r--firmware/include/buflib.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/include/buflib.h b/firmware/include/buflib.h
index 3048443..e912429 100644
--- a/firmware/include/buflib.h
+++ b/firmware/include/buflib.h
@@ -303,12 +303,14 @@ void buflib_buffer_in(struct buflib_context *ctx, int size);
/* debugging */
/**
- * Returns the name, as given to core_alloc() and core_allloc_ex(), of the
- * allocation associated with the given handle
+ * Returns the name, as given to buflib_alloc() and buflib_allloc_ex(), of the
+ * allocation associated with the given handle. As naming allocations
+ * is optional, there might be no name associated.
*
* handle: The handle indicating the allocation
*
- * Returns: A pointer to the string identifier of the allocation
+ * Returns: A pointer to the string identifier of the allocation, or NULL
+ * if none was specified with buflib_alloc_ex/(.
*/
const char* buflib_get_name(struct buflib_context *ctx, int handle);