Browse Source

API: Export missing symbols to jack library.

The function pointers jack_error_callback and jack_info_callback are
offered by the jack.h header as non-weak API members, but they were not
exported to the jack library, only to the jackserver library.

This broke the Jack backend of the OpenAl Soft library when switching
from Jack1 to Jack2.
tags/v1.9.21
Florian Walpen 0EVSG 6 months ago
parent
commit
2980933a80
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      common/JackError.cpp
  2. +2
    -2
      common/JackError.h

+ 2
- 2
common/JackError.cpp View File

@@ -133,5 +133,5 @@ SERVER_EXPORT void silent_jack_error_callback(const char *desc)
SERVER_EXPORT void silent_jack_info_callback(const char *desc)
{}

SERVER_EXPORT void (*jack_error_callback)(const char *desc) = &default_jack_error_callback;
SERVER_EXPORT void (*jack_info_callback)(const char *desc) = &default_jack_info_callback;
LIB_EXPORT void (*jack_error_callback)(const char *desc) = &default_jack_error_callback;
LIB_EXPORT void (*jack_info_callback)(const char *desc) = &default_jack_info_callback;

+ 2
- 2
common/JackError.h View File

@@ -35,8 +35,8 @@ extern "C"
SERVER_EXPORT void jack_info(const char *fmt, ...);
SERVER_EXPORT void jack_log(const char *fmt, ...);

SERVER_EXPORT extern void (*jack_error_callback)(const char *desc);
SERVER_EXPORT extern void (*jack_info_callback)(const char *desc);
LIB_EXPORT extern void (*jack_error_callback)(const char *desc);
LIB_EXPORT extern void (*jack_info_callback)(const char *desc);

SERVER_EXPORT extern void default_jack_error_callback(const char *desc);
SERVER_EXPORT extern void default_jack_info_callback(const char *desc);


Loading…
Cancel
Save