mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-15 06:59:58 -05:00
A lot of more work to get the lock-free stuff in place
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1474 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
69115687ad
commit
be4a882836
33 changed files with 908 additions and 694 deletions
|
|
@ -28,13 +28,15 @@
|
|||
|
||||
#include "msgobject.h"
|
||||
|
||||
pa_msgobject *pa_msgobject_new_internal(size_t size, const char *type_name) {
|
||||
PA_DEFINE_CHECK_TYPE(pa_msgobject, pa_msgobject_check_type, pa_object_check_type);
|
||||
|
||||
pa_msgobject *pa_msgobject_new_internal(size_t size, const char *type_name, int (*check_type)(pa_object *o, const char *type_name)) {
|
||||
pa_msgobject *o;
|
||||
|
||||
pa_assert(size > sizeof(pa_msgobject));
|
||||
pa_assert(type_name);
|
||||
|
||||
o = PA_MSGOBJECT(pa_object_new_internal(size, type_name));
|
||||
o = PA_MSGOBJECT(pa_object_new_internal(size, type_name, check_type ? check_type : pa_msgobject_check_type));
|
||||
o->process_msg = NULL;
|
||||
return o;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue