2009-07-26 23:26:29 +03:00
|
|
|
/* -*- Mode: C ; c-basic-offset: 2 -*- */
|
2009-07-29 20:45:43 +03:00
|
|
|
/*
|
|
|
|
* LADI Session Handler (ladish)
|
2009-07-26 23:26:29 +03:00
|
|
|
*
|
2010-04-03 19:33:25 +03:00
|
|
|
* Copyright (C) 2009, 2010 Nedko Arnaudov <nedko@arnaudov.name>
|
2009-07-26 23:26:29 +03:00
|
|
|
*
|
2009-07-29 20:45:43 +03:00
|
|
|
**************************************************************************
|
2009-08-23 01:21:23 +03:00
|
|
|
* This file contains interface of the studio singleton object
|
2009-07-29 20:45:43 +03:00
|
|
|
**************************************************************************
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2009-07-26 23:26:29 +03:00
|
|
|
|
|
|
|
#ifndef STUDIO_H__0BEDE85E_4FB3_4D74_BC08_C373A22409C0__INCLUDED
|
|
|
|
#define STUDIO_H__0BEDE85E_4FB3_4D74_BC08_C373A22409C0__INCLUDED
|
|
|
|
|
2010-04-03 19:33:25 +03:00
|
|
|
#include "app_supervisor.h"
|
2010-04-03 22:25:28 +03:00
|
|
|
#include "graph.h"
|
2010-05-09 12:54:45 +03:00
|
|
|
#include "room.h"
|
2010-05-13 03:18:23 +03:00
|
|
|
#include "virtualizer.h"
|
2010-04-03 19:33:25 +03:00
|
|
|
|
2010-05-05 00:35:10 +03:00
|
|
|
bool ladish_studio_init(void);
|
|
|
|
void ladish_studio_uninit(void);
|
|
|
|
void ladish_studio_run(void);
|
|
|
|
bool ladish_studio_is_loaded(void);
|
|
|
|
bool ladish_studio_is_started(void);
|
2009-08-08 03:09:39 +03:00
|
|
|
|
2010-05-05 00:35:10 +03:00
|
|
|
bool ladish_studios_iterate(void * call_ptr, void * context, bool (* callback)(void * call_ptr, void * context, const char * studio, uint32_t modtime));
|
|
|
|
bool ladish_studio_delete(void * call_ptr, const char * studio_name);
|
2009-08-24 01:58:14 +03:00
|
|
|
|
2010-05-05 00:35:10 +03:00
|
|
|
void ladish_studio_on_child_exit(pid_t pid);
|
2009-11-30 23:45:14 +02:00
|
|
|
|
2010-04-03 19:33:25 +03:00
|
|
|
bool
|
2010-05-05 00:35:10 +03:00
|
|
|
ladish_studio_iterate_virtual_graphs(
|
2010-04-03 19:33:25 +03:00
|
|
|
void * context,
|
|
|
|
bool (* callback)(
|
|
|
|
void * context,
|
2010-04-03 22:25:28 +03:00
|
|
|
ladish_graph_handle graph,
|
2010-04-03 19:33:25 +03:00
|
|
|
ladish_app_supervisor_handle app_supervisor));
|
|
|
|
|
2010-06-10 03:15:52 +03:00
|
|
|
bool
|
|
|
|
ladish_studio_iterate_rooms(
|
|
|
|
void * context,
|
|
|
|
bool (* callback)(
|
|
|
|
void * context,
|
|
|
|
ladish_room_handle room));
|
|
|
|
|
2010-05-05 00:35:10 +03:00
|
|
|
void ladish_studio_stop_app_supervisors(void);
|
2010-05-04 23:48:23 +03:00
|
|
|
ladish_app_supervisor_handle ladish_studio_find_app_supervisor(const char * opath);
|
2010-11-30 00:13:11 +02:00
|
|
|
ladish_app_handle ladish_studio_find_app_by_uuid(const uuid_t app_uuid);
|
2010-05-04 23:29:38 +03:00
|
|
|
struct ladish_cqueue * ladish_studio_get_cmd_queue(void);
|
2010-05-13 03:18:23 +03:00
|
|
|
ladish_virtualizer_handle ladish_studio_get_virtualizer(void);
|
2010-05-16 11:17:09 +03:00
|
|
|
ladish_graph_handle ladish_studio_get_jack_graph(void);
|
2010-08-06 05:00:04 +03:00
|
|
|
ladish_graph_handle ladish_studio_get_studio_graph(void);
|
2010-08-30 00:05:57 +03:00
|
|
|
ladish_app_supervisor_handle ladish_studio_get_studio_app_supervisor(void);
|
2010-05-31 00:48:33 +03:00
|
|
|
bool ladish_studio_has_rooms(void);
|
2010-04-03 19:33:25 +03:00
|
|
|
|
2010-07-20 01:31:37 +03:00
|
|
|
unsigned int ladish_studio_get_room_index(void);
|
|
|
|
void ladish_studio_release_room_index(unsigned int index);
|
|
|
|
|
|
|
|
void ladish_studio_room_appeared(ladish_room_handle room);
|
|
|
|
void ladish_studio_room_disappeared(ladish_room_handle room);
|
2010-05-09 12:54:45 +03:00
|
|
|
|
2010-08-05 15:46:15 +03:00
|
|
|
ladish_room_handle ladish_studio_find_room_by_uuid(const uuid_t room_uuid_ptr);
|
2010-09-19 03:06:31 +03:00
|
|
|
bool ladish_studio_check_room_name(const char * room_name);
|
2010-08-05 15:46:15 +03:00
|
|
|
|
2009-07-26 23:26:29 +03:00
|
|
|
#endif /* #ifndef STUDIO_H__0BEDE85E_4FB3_4D74_BC08_C373A22409C0__INCLUDED */
|