Declare all functions static that are not callbacks and not in audio_jack API struct.

If there are any calls from the outside I haven't thought of, that should make them fail.
This commit is contained in:
Jörn Nettingsmeier
2019-02-15 18:39:20 +00:00
parent d7c7365bb1
commit 9520e89183
+3 -3
View File
@@ -200,7 +200,7 @@ int jack_is_running() {
return reply;
}
int jack_client_open_if_needed(void) {
static int jack_client_open_if_needed(void) {
pthread_mutex_lock(&client_mutex);
if (client_is_open == 0) {
jack_status_t status;
@@ -231,7 +231,7 @@ int jack_client_open_if_needed(void) {
return client_is_open;
}
void jack_close(void) {
static void jack_close(void) {
pthread_mutex_lock(&client_mutex);
if (client_is_open) {
if (jack_deactivate(client))
@@ -254,7 +254,7 @@ void jack_deinit() {
}
}
void *open_client_if_necessary_thread_function(void *arg) {
static void *open_client_if_necessary_thread_function(void *arg) {
int *interval = (int *)arg;
while (*interval != 0) {
if (client_is_open == 0) {