From 01b5bc443f9aef59749d15ebb2a08fdb78c37256 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 13 Jul 2023 12:10:21 +0200 Subject: [PATCH] thread: expose pw_thread_fill_attr() --- src/pipewire/private.h | 2 -- src/pipewire/thread.c | 3 ++- src/pipewire/thread.h | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pipewire/private.h b/src/pipewire/private.h index 0f62ee44e..830534b7c 100644 --- a/src/pipewire/private.h +++ b/src/pipewire/private.h @@ -1321,8 +1321,6 @@ void pw_settings_init(struct pw_context *context); int pw_settings_expose(struct pw_context *context); void pw_settings_clean(struct pw_context *context); -pthread_attr_t *pw_thread_fill_attr(const struct spa_dict *props, pthread_attr_t *attr); - /** \endcond */ #ifdef __cplusplus diff --git a/src/pipewire/thread.c b/src/pipewire/thread.c index d845f1477..68a708180 100644 --- a/src/pipewire/thread.c +++ b/src/pipewire/thread.c @@ -25,8 +25,9 @@ do { \ } while(false); SPA_EXPORT -pthread_attr_t *pw_thread_fill_attr(const struct spa_dict *props, pthread_attr_t *attr) +void *pw_thread_fill_attr(const struct spa_dict *props, void *_attr) { + pthread_attr_t *attr = _attr; const char *str; int res; diff --git a/src/pipewire/thread.h b/src/pipewire/thread.h index e29fb36e5..5ce948dcb 100644 --- a/src/pipewire/thread.h +++ b/src/pipewire/thread.h @@ -27,6 +27,7 @@ extern "C" { SPA_DEPRECATED void pw_thread_utils_set(struct spa_thread_utils *impl); struct spa_thread_utils *pw_thread_utils_get(void); +void *pw_thread_fill_attr(const struct spa_dict *props, void *attr); #define pw_thread_utils_create(...) spa_thread_utils_create(pw_thread_utils_get(), ##__VA_ARGS__) #define pw_thread_utils_join(...) spa_thread_utils_join(pw_thread_utils_get(), ##__VA_ARGS__)