87 lines
2.3 KiB
Diff
87 lines
2.3 KiB
Diff
|
From 3450bea4167573d3d364e1a768605d11be241293 Mon Sep 17 00:00:00 2001
|
||
|
From: Wim Taymans <wtaymans@redhat.com>
|
||
|
Date: Thu, 4 Feb 2021 15:48:36 +0100
|
||
|
Subject: [PATCH 2/2] jack: implement some missing methods
|
||
|
|
||
|
to make qjackctl 0.9.0 work
|
||
|
---
|
||
|
pipewire-jack/src/pipewire-jack.c | 55 ++++++++++++++++++++++++++++++-
|
||
|
1 file changed, 54 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c
|
||
|
index 5163d4a5e..a7ead586d 100644
|
||
|
--- a/pipewire-jack/src/pipewire-jack.c
|
||
|
+++ b/pipewire-jack/src/pipewire-jack.c
|
||
|
@@ -4719,7 +4719,12 @@ int jack_session_reply (jack_client_t *client,
|
||
|
SPA_EXPORT
|
||
|
void jack_session_event_free (jack_session_event_t *event)
|
||
|
{
|
||
|
- pw_log_warn("not implemented");
|
||
|
+ if (event) {
|
||
|
+ free((void *)event->session_dir);
|
||
|
+ free((void *)event->client_uuid);
|
||
|
+ free(event->command_line);
|
||
|
+ free(event);
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
SPA_EXPORT
|
||
|
@@ -4732,6 +4737,54 @@ char *jack_client_get_uuid (jack_client_t *client)
|
||
|
return spa_aprintf("%"PRIu64, client_make_uuid(c->node_id));
|
||
|
}
|
||
|
|
||
|
+SPA_EXPORT
|
||
|
+jack_session_command_t *jack_session_notify (
|
||
|
+ jack_client_t* client,
|
||
|
+ const char *target,
|
||
|
+ jack_session_event_type_t type,
|
||
|
+ const char *path)
|
||
|
+{
|
||
|
+ struct client *c = (struct client *) client;
|
||
|
+ spa_return_val_if_fail(c != NULL, NULL);
|
||
|
+ pw_log_warn("not implemented");
|
||
|
+ return NULL;
|
||
|
+}
|
||
|
+
|
||
|
+SPA_EXPORT
|
||
|
+void jack_session_commands_free (jack_session_command_t *cmds)
|
||
|
+{
|
||
|
+ int i;
|
||
|
+ if (cmds == NULL)
|
||
|
+ return;
|
||
|
+
|
||
|
+ for (i = 0; cmds[i].uuid != NULL; i++) {
|
||
|
+ free((char*)cmds[i].client_name);
|
||
|
+ free((char*)cmds[i].command);
|
||
|
+ free((char*)cmds[i].uuid);
|
||
|
+ }
|
||
|
+ free(cmds);
|
||
|
+}
|
||
|
+
|
||
|
+SPA_EXPORT
|
||
|
+int jack_reserve_client_name (jack_client_t *client,
|
||
|
+ const char *name,
|
||
|
+ const char *uuid)
|
||
|
+{
|
||
|
+ struct client *c = (struct client *) client;
|
||
|
+ spa_return_val_if_fail(c != NULL, -1);
|
||
|
+ pw_log_warn("not implemented");
|
||
|
+ return 0;
|
||
|
+}
|
||
|
+
|
||
|
+SPA_EXPORT
|
||
|
+int jack_client_has_session_callback (jack_client_t *client, const char *client_name)
|
||
|
+{
|
||
|
+ struct client *c = (struct client *) client;
|
||
|
+ spa_return_val_if_fail(c != NULL, -1);
|
||
|
+ return 0;
|
||
|
+}
|
||
|
+
|
||
|
+
|
||
|
SPA_EXPORT
|
||
|
int jack_client_real_time_priority (jack_client_t * client)
|
||
|
{
|
||
|
--
|
||
|
2.26.2
|
||
|
|