From 2d8115ffacbfbcfb303f4c8e437eeb84346cb80b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 24 Sep 2013 22:13:32 -0400 Subject: [PATCH] changes to internal client necessary (for now) for UUID changes --- intclient.h | 29 +++++++++++++++++++---------- types.h | 2 +- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/intclient.h b/intclient.h index 36883de..880226b 100644 --- a/intclient.h +++ b/intclient.h @@ -45,7 +45,7 @@ char *jack_get_internal_client_name (jack_client_t *client, jack_intclient_t intclient); /** - * Return the @ref jack_intclient_t handle for an internal client + * Find the @ref jack_intclient_t handle for an internal client * running in the JACK server. * * @param client requesting JACK client's handle. @@ -58,13 +58,18 @@ char *jack_get_internal_client_name (jack_client_t *client, * information from this operation. This status word is formed by * OR-ing together the relevant @ref JackStatus bits. * - * @return Opaque internal client handle if successful. If 0, the + * @param handle the client handle will be returned here (passed + * by reference because of the type. + * + * @return 0 if successfullm non-zero otherwise. + * If non-zero, the * internal client was not found, and @a *status includes the @ref * JackNoSuchClient and @ref JackFailure bits. */ -jack_intclient_t jack_internal_client_handle (jack_client_t *client, - const char *client_name, - jack_status_t *status); +int jack_internal_client_handle (jack_client_t *client, + const char *client_name, + jack_status_t *status, + jack_intclient_t handle); /** * Load an internal client into the JACK server. @@ -88,6 +93,9 @@ jack_intclient_t jack_internal_client_handle (jack_client_t *client, * information from the load operation. This status word is formed by * OR-ing together the relevant @ref JackStatus bits. * + * @param handle the client handle will be returned here (passed + * by reference because of the type. + * * Optional parameters: depending on corresponding [@a options * bits] additional parameters may follow @a status (in this order). * @@ -99,14 +107,15 @@ jack_intclient_t jack_internal_client_handle (jack_client_t *client, * string passed to the internal client's jack_initialize() routine * (otherwise NULL), of no more than @ref JACK_LOAD_INIT_LIMIT bytes. * - * @return Opaque internal client handle if successful. If this is 0, + * @return zero if successful, non-zero otherwise. If this is non-zero, * the load operation failed, the internal client was not loaded, and * @a *status includes the @ref JackFailure bit. */ -jack_intclient_t jack_internal_client_load (jack_client_t *client, - const char *client_name, - jack_options_t options, - jack_status_t *status, ...); +int jack_internal_client_load (jack_client_t *client, + const char *client_name, + jack_options_t options, + jack_status_t *status, + jack_intclient_t, ...); /** * Unload an internal client from a JACK server. This calls the * intclient's jack_finish() entry point then removes it. See @ref diff --git a/types.h b/types.h index 565c4ac..74d0a15 100644 --- a/types.h +++ b/types.h @@ -57,7 +57,7 @@ typedef uint64_t jack_time_t; * client. You may only access it using the API provided in @ref * intclient.h "". */ -typedef uint64_t jack_intclient_t; +typedef jack_uuid_t jack_intclient_t; /** * jack_port_t is an opaque type. You may only access it using the