2009-09-06 01:15:25 +03:00
|
|
|
/* -*- Mode: C ; c-basic-offset: 2 -*- */
|
|
|
|
/*
|
|
|
|
* LADI Session Handler (ladish)
|
|
|
|
*
|
2011-06-01 03:04:18 +03:00
|
|
|
* Copyright (C) 2009, 2010, 2011 Nedko Arnaudov <nedko@arnaudov.name>
|
2009-09-06 01:15:25 +03:00
|
|
|
*
|
|
|
|
**************************************************************************
|
|
|
|
* This file contains interface to graph dispatcher object
|
|
|
|
**************************************************************************
|
|
|
|
*
|
|
|
|
* LADI Session Handler is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* LADI Session Handler is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with LADI Session Handler. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
* or write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef JACK_DISPATCH_H__C7566B66_081D_4D00_A702_7C18F7CC0735__INCLUDED
|
|
|
|
#define JACK_DISPATCH_H__C7566B66_081D_4D00_A702_7C18F7CC0735__INCLUDED
|
|
|
|
|
|
|
|
#include "common.h"
|
2009-12-13 18:10:57 +02:00
|
|
|
#include "../proxies/graph_proxy.h"
|
2009-09-06 15:30:29 +03:00
|
|
|
#include "graph.h"
|
2011-08-04 02:59:01 +03:00
|
|
|
#include "app_supervisor.h"
|
2009-09-06 01:15:25 +03:00
|
|
|
|
2009-11-28 17:23:23 +02:00
|
|
|
typedef struct ladish_virtualizer { int unused; } * ladish_virtualizer_handle;
|
2009-09-06 01:15:25 +03:00
|
|
|
|
|
|
|
bool
|
2009-11-28 17:23:23 +02:00
|
|
|
ladish_virtualizer_create(
|
2009-09-12 22:30:33 +03:00
|
|
|
graph_proxy_handle jack_graph_proxy,
|
|
|
|
ladish_graph_handle jack_graph,
|
2009-11-28 17:23:23 +02:00
|
|
|
ladish_virtualizer_handle * handle_ptr);
|
2009-09-06 01:15:25 +03:00
|
|
|
|
2010-04-05 04:18:24 +03:00
|
|
|
void
|
|
|
|
ladish_virtualizer_set_graph_connection_handlers(
|
|
|
|
ladish_virtualizer_handle handle,
|
|
|
|
ladish_graph_handle graph);
|
|
|
|
|
2009-12-11 22:54:08 +02:00
|
|
|
unsigned int
|
|
|
|
ladish_virtualizer_get_our_clients_count(
|
|
|
|
ladish_virtualizer_handle handle);
|
|
|
|
|
2010-05-13 03:18:23 +03:00
|
|
|
bool
|
|
|
|
ladish_virtualizer_is_hidden_app(
|
2010-08-30 00:08:43 +03:00
|
|
|
ladish_graph_handle jack_graph,
|
2010-08-30 00:05:57 +03:00
|
|
|
const uuid_t app_uuid,
|
2010-05-13 03:18:23 +03:00
|
|
|
const char * app_name);
|
|
|
|
|
|
|
|
void
|
|
|
|
ladish_virtualizer_remove_app(
|
2010-08-30 00:08:43 +03:00
|
|
|
ladish_graph_handle jack_graph,
|
2010-08-30 00:05:57 +03:00
|
|
|
const uuid_t app_uuid,
|
2010-05-13 03:18:23 +03:00
|
|
|
const char * app_name);
|
|
|
|
|
2010-08-30 00:40:17 +03:00
|
|
|
void
|
|
|
|
ladish_virtualizer_rename_app(
|
|
|
|
void * vgraph_context,
|
|
|
|
const uuid_t uuid,
|
|
|
|
const char * old_name,
|
|
|
|
const char * new_app_name);
|
2010-08-30 00:05:57 +03:00
|
|
|
|
2010-08-30 04:14:25 +03:00
|
|
|
bool
|
|
|
|
ladish_virtualizer_is_system_client(
|
|
|
|
uuid_t uuid);
|
|
|
|
|
2010-11-08 01:19:02 +02:00
|
|
|
bool
|
|
|
|
ladish_virtualizer_is_a2j_client(
|
|
|
|
ladish_client_handle jclient);
|
|
|
|
|
2009-09-06 01:15:25 +03:00
|
|
|
void
|
2009-11-28 17:23:23 +02:00
|
|
|
ladish_virtualizer_destroy(
|
|
|
|
ladish_virtualizer_handle handle);
|
2009-09-06 01:15:25 +03:00
|
|
|
|
2011-06-01 03:04:18 +03:00
|
|
|
/* create new client and move capture ports of the supplied client the the new client */
|
|
|
|
bool
|
|
|
|
ladish_virtualizer_split_client(
|
|
|
|
ladish_graph_handle vgraph,
|
|
|
|
uint64_t client_id);
|
|
|
|
|
|
|
|
/* move ports of client2 to client1 and remove client2 */
|
|
|
|
bool
|
|
|
|
ladish_virtualizer_join_clients(
|
|
|
|
ladish_graph_handle vgraph,
|
|
|
|
uint64_t client1_id,
|
|
|
|
uint64_t client2_id);
|
|
|
|
|
2011-08-04 02:59:01 +03:00
|
|
|
ladish_app_handle
|
|
|
|
ladish_find_app_by_pid(
|
|
|
|
pid_t pid,
|
|
|
|
ladish_graph_handle * graph_ptr);
|
|
|
|
|
2009-09-06 01:15:25 +03:00
|
|
|
#endif /* #ifndef JACK_DISPATCH_H__C7566B66_081D_4D00_A702_7C18F7CC0735__INCLUDED */
|