Browse Source

add JackPortNameCallback type and port rename callback (to match changes above, and to come into line with jack2)

tags/0.124.0
Paul Davis 12 years ago
parent
commit
0b467a387a
2 changed files with 22 additions and 0 deletions
  1. +11
    -0
      jack.h
  2. +11
    -0
      types.h

+ 11
- 0
jack.h View File

@@ -393,6 +393,17 @@ int jack_set_port_registration_callback (jack_client_t *,
JackPortRegistrationCallback
registration_callback, void *arg) JACK_OPTIONAL_WEAK_EXPORT;


/**
* Tell the JACK server to call @a registration_callback whenever a
* port is registered or unregistered, passing @a arg as a parameter.
*
* @return 0 on success, otherwise a non-zero error code
*/
int jack_set_port_rename_callback (jack_client_t *,
JackPortRenameCallback
rename_callback, void *arg) JACK_OPTIONAL_WEAK_EXPORT;

/**
* Tell the JACK server to call @a connect_callback whenever a
* port is connected or disconnected, passing @a arg as a parameter.


+ 11
- 0
types.h View File

@@ -371,6 +371,17 @@ typedef int (*JackSampleRateCallback)(jack_nframes_t nframes, void *arg);
*/
typedef void (*JackPortRegistrationCallback)(jack_port_id_t port, int register, void *arg);

/**
* Prototype for the client supplied function that is called
* whenever a port is renamed
*
* @param port the ID of the port
* @param arg pointer to a client supplied data
* @param old_name the name of the port before the rename was carried out
* @param new_name the name of the port after the rename was carried out
*/
typedef void (*JackPortRenameCallback)(jack_port_id_t port, const char* old_name, const char* new_name, void* arg);

/**
* Prototype for the client supplied function that is called
* whenever a client is registered or unregistered.


Loading…
Cancel
Save