Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Libcedrus
Commits
9b243c43
Commit
9b243c43
authored
Mar 23, 2016
by
Andreas Baierl
Committed by
Jens Kuske
May 30, 2016
Browse files
Add function to get ump handle
parent
e129e793
Changes
2
Show whitespace changes
Inline
Side-by-side
cedrus.h
View file @
9b243c43
...
@@ -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
cedrus_mem_ump.c
View file @
9b243c43
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment