summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/osdcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/osdcore.h')
-rw-r--r--src/osd/osdcore.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/osd/osdcore.h b/src/osd/osdcore.h
index 6f98828f4b3..b4d22bc3bfc 100644
--- a/src/osd/osdcore.h
+++ b/src/osd/osdcore.h
@@ -723,7 +723,7 @@ void osd_work_item_release(osd_work_item *item);
***************************************************************************/
/*-----------------------------------------------------------------------------
- osd_malloc: allocate memory that
+ osd_malloc: allocate memory
Parameters:
@@ -742,6 +742,26 @@ void *osd_malloc(size_t size);
/*-----------------------------------------------------------------------------
+ osd_malloc_array: allocate memory, hinting tha this memory contains an
+ array
+
+ Parameters:
+
+ size - the number of bytes to allocate
+
+ Return value:
+
+ a pointer to the allocated memory
+
+ Notes:
+
+ This is just a hook to do OS-specific allocation trickery.
+ It can be safely written as a wrapper to malloc().
+-----------------------------------------------------------------------------*/
+void *osd_malloc_array(size_t size);
+
+
+/*-----------------------------------------------------------------------------
osd_free: free memory allocated by osd_malloc
Parameters: