Crudebyte Logo
JACKiOS  1.9.10.3
Controlling error/information output

Detailed Description

The functions in this group allow to register callbacks for diverting any info & error messages the JACK system raises at runtime. By default such messages are simply sent to stdout. A GUI based application might implement and register the callbacks here to receive all messages of JACK and display them on some custom GUI widget of the client application.

Functions

void jack_set_error_function (void(*func)(const char *)) JACK_OPTIONAL_WEAK_EXPORT
void jack_set_info_function (void(*func)(const char *)) JACK_OPTIONAL_WEAK_EXPORT

Variables

void(* jack_error_callback )(const char *msg) JACK_OPTIONAL_WEAK_EXPORT
void(* jack_info_callback )(const char *msg) JACK_OPTIONAL_WEAK_EXPORT

Function Documentation

void jack_set_error_function ( void(*)(const char *)  func)

Set the jack_error_callback for error message display. Set it to NULL to restore default_jack_error_callback function.

The JACK library provides two built-in callbacks for this purpose: default_jack_error_callback() and silent_jack_error_callback().

void jack_set_info_function ( void(*)(const char *)  func)

Set the jack_info_callback for info message display. Set it to NULL to restore default_jack_info_callback function.

The JACK library provides two built-in callbacks for this purpose: default_jack_info_callback() and silent_jack_info_callback().

Variable Documentation

void(* jack_error_callback)(const char *msg) JACK_OPTIONAL_WEAK_EXPORT

Display JACK error message.

Set via jack_set_error_function(), otherwise a JACK-provided default will print msg (plus a newline) to stderr.

Parameters
msgerror message text (no newline at end).
void(* jack_info_callback)(const char *msg) JACK_OPTIONAL_WEAK_EXPORT

Display JACK info message.

Set via jack_set_info_function(), otherwise a JACK-provided default will print msg (plus a newline) to stdout.

Parameters
msginfo message text (no newline at end).
DE • EN
Copyright © MMXIII Crudebyte. All rights reserved.

twitter