summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-11 21:02:02 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-11 21:02:02 -0400
commit94c819accfab2612050e875c24cf325daa0fd26d (patch)
tree07d000f134c6a6bebb142e806136dc02793ddf5d /include
parent16193a395222d36496f28a67913d98fa559e300b (diff)
downloadjack1-94c819accfab2612050e875c24cf325daa0fd26d.tar.gz
basics for a hypothetical PortRename callback
This cannot be implemented at present because jack_port_set_name() does not take a jack_client_t* as an argument, and thus no msg can be sent to the server regarding the name change. Jack2 accomplishes this by walking its static array of clients to find one that is in use and sends the msg using that one. This is not possible in Jack1 because we do not use static arrays of clients (or ports).
Diffstat (limited to 'include')
-rw-r--r--include/internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/internal.h b/include/internal.h
index 02b2de0..831124f 100644
--- a/include/internal.h
+++ b/include/internal.h
@@ -223,7 +223,8 @@ typedef enum {
ClientUnregistered,
SaveSession,
LatencyCallback,
- PropertyChange
+ PropertyChange,
+ PortRename
} JackEventType;
const char* jack_event_type_name (JackEventType);
@@ -244,6 +245,7 @@ typedef struct {
uint32_t key_size; /* key data will follow the event structure */
} y;
union {
+ char other_name[JACK_PORT_NAME_SIZE];
jack_property_change_t property_change;
} z;
} POST_PACKED_STRUCTURE jack_event_t;
@@ -309,6 +311,7 @@ typedef volatile struct {
volatile uint8_t session_cbset;
volatile uint8_t latency_cbset;
volatile uint8_t property_cbset;
+ volatile uint8_t port_rename_cbset;
} POST_PACKED_STRUCTURE jack_client_control_t;