Skip to content

Commit

Permalink
Use dllimport/dllexport in public jack headers
Browse files Browse the repository at this point in the history
When building jack, symbols are declared using dllexport.
When headers are used by an application, symbols will be declared using
dllimport.

Fixes: jackaudio#792
  • Loading branch information
amurzeau committed Aug 21, 2021
1 parent 1ab3445 commit 8f979ca
Show file tree
Hide file tree
Showing 12 changed files with 226 additions and 24 deletions.
5 changes: 5 additions & 0 deletions common/jack/intclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ extern "C"
#endif

#include <jack/types.h>
#include <jack/systemdeps.h>

/**
* Get an internal client's name. This is useful when @ref
Expand All @@ -42,6 +43,7 @@ extern "C"
* client name obtained from the heap via malloc(). The caller should
* jack_free() this storage when no longer needed.
*/
JACK_CLIENT_API_EXPORT
char *jack_get_internal_client_name (jack_client_t *client,
jack_intclient_t intclient);

Expand All @@ -63,6 +65,7 @@ char *jack_get_internal_client_name (jack_client_t *client,
* internal client was not found, and @a *status includes the @ref
* JackNoSuchClient and @ref JackFailure bits.
*/
JACK_CLIENT_API_EXPORT
jack_intclient_t jack_internal_client_handle (jack_client_t *client,
const char *client_name,
jack_status_t *status);
Expand Down Expand Up @@ -104,6 +107,7 @@ jack_intclient_t jack_internal_client_handle (jack_client_t *client,
* the load operation failed, the internal client was not loaded, and
* @a *status includes the @ref JackFailure bit.
*/
JACK_CLIENT_API_EXPORT
jack_intclient_t jack_internal_client_load (jack_client_t *client,
const char *client_name,
jack_options_t options,
Expand All @@ -120,6 +124,7 @@ jack_intclient_t jack_internal_client_load (jack_client_t *client,
*
* @return 0 if successful, otherwise @ref JackStatus bits.
*/
JACK_CLIENT_API_EXPORT
jack_status_t jack_internal_client_unload (jack_client_t *client,
jack_intclient_t intclient);

Expand Down
Loading

0 comments on commit 8f979ca

Please sign in to comment.