Commit 9b243c43 authored by Andreas Baierl's avatar Andreas Baierl Committed by Jens Kuske
Browse files

Add function to get ump handle

parent e129e793
...@@ -42,5 +42,6 @@ void cedrus_mem_flush_cache(cedrus_mem_t *mem); ...@@ -42,5 +42,6 @@ void cedrus_mem_flush_cache(cedrus_mem_t *mem);
void *cedrus_mem_get_pointer(const cedrus_mem_t *mem); void *cedrus_mem_get_pointer(const cedrus_mem_t *mem);
uint32_t cedrus_mem_get_phys_addr(const cedrus_mem_t *mem); uint32_t cedrus_mem_get_phys_addr(const cedrus_mem_t *mem);
uint32_t cedrus_mem_get_bus_addr(const cedrus_mem_t *mem); uint32_t cedrus_mem_get_bus_addr(const cedrus_mem_t *mem);
void *cedrus_mem_get_ump_handle(const cedrus_mem_t *mem);
#endif #endif
...@@ -108,3 +108,13 @@ struct cedrus_allocator *cedrus_allocator_ump_new(void) ...@@ -108,3 +108,13 @@ struct cedrus_allocator *cedrus_allocator_ump_new(void)
return allocator; return allocator;
} }
__attribute__ ((visibility ("default"))) void *cedrus_mem_get_ump_handle(const struct cedrus_mem *mem_pub)
{
const struct ump_mem *mem = (const struct ump_mem *)mem_pub;
if (!mem)
return 0x0;
return mem->handle;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment