diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-02-10 10:59:24 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-02-10 10:59:24 +0100 |
commit | 905e5af0582df879472231db0b9b4aaf07294fcf (patch) | |
tree | 4d0ebd4619c432a8361999c18427619fd492e1cb /pipewire-jack | |
parent | 656c58fd986028bcdd5d6c4477dedf341c6a918d (diff) |
jack: implement the jack_info_callback and function
Diffstat (limited to 'pipewire-jack')
-rw-r--r-- | pipewire-jack/src/pipewire-jack.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index 968b16fe..16ab9d83 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -3879,6 +3879,11 @@ void default_jack_error_callback(const char *desc) } SPA_EXPORT +void silent_jack_error_callback(const char *desc) +{ +} + +SPA_EXPORT void (*jack_error_callback)(const char *msg); SPA_EXPORT @@ -3888,9 +3893,24 @@ void jack_set_error_function (void (*func)(const char *)) } SPA_EXPORT +void default_jack_info_callback(const char *desc) +{ + pw_log_info("pw jack info: %s",desc); +} + +SPA_EXPORT +void silent_jack_info_callback(const char *desc) +{ +} + +SPA_EXPORT +void (*jack_info_callback)(const char *msg); + + +SPA_EXPORT void jack_set_info_function (void (*func)(const char *)) { - pw_log_warn("not implemented"); + jack_info_callback = (func == NULL) ? &default_jack_info_callback : func; } SPA_EXPORT |