1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2009, 2010 Nedko Arnaudov <nedko@arnaudov.name>
7 **************************************************************************
8 * This file contains interface of the studio singleton object
9 **************************************************************************
11 * LADI Session Handler is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * LADI Session Handler is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with LADI Session Handler. If not, see <http://www.gnu.org/licenses/>
23 * or write to the Free Software Foundation, Inc.,
24 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27 #ifndef STUDIO_H__0BEDE85E_4FB3_4D74_BC08_C373A22409C0__INCLUDED
28 #define STUDIO_H__0BEDE85E_4FB3_4D74_BC08_C373A22409C0__INCLUDED
30 #include "app_supervisor.h"
33 #include "virtualizer.h"
35 bool ladish_studio_init(void);
36 void ladish_studio_uninit(void);
37 void ladish_studio_run(void);
38 bool ladish_studio_is_loaded(void);
39 bool ladish_studio_is_started(void);
41 bool ladish_studios_iterate(void * call_ptr
, void * context
, bool (* callback
)(void * call_ptr
, void * context
, const char * studio
, uint32_t modtime
));
42 bool ladish_studio_delete(void * call_ptr
, const char * studio_name
);
44 void ladish_studio_on_child_exit(pid_t pid
);
47 ladish_studio_iterate_virtual_graphs(
51 ladish_graph_handle graph
,
52 ladish_app_supervisor_handle app_supervisor
));
55 ladish_studio_iterate_rooms(
59 ladish_room_handle room
));
61 void ladish_studio_stop_app_supervisors(void);
62 ladish_app_supervisor_handle
ladish_studio_find_app_supervisor(const char * opath
);
63 struct ladish_cqueue
* ladish_studio_get_cmd_queue(void);
64 ladish_virtualizer_handle
ladish_studio_get_virtualizer(void);
65 ladish_graph_handle
ladish_studio_get_jack_graph(void);
66 ladish_graph_handle
ladish_studio_get_studio_graph(void);
67 ladish_app_supervisor_handle
ladish_studio_get_studio_app_supervisor(void);
68 bool ladish_studio_has_rooms(void);
70 unsigned int ladish_studio_get_room_index(void);
71 void ladish_studio_release_room_index(unsigned int index
);
73 void ladish_studio_room_appeared(ladish_room_handle room
);
74 void ladish_studio_room_disappeared(ladish_room_handle room
);
76 ladish_room_handle
ladish_studio_find_room_by_uuid(const uuid_t room_uuid_ptr
);
77 bool ladish_studio_check_room_name(const char * room_name
);
79 #endif /* #ifndef STUDIO_H__0BEDE85E_4FB3_4D74_BC08_C373A22409C0__INCLUDED */