gladish: rename "Run..." menu entries to "New Application..."
[ladish.git] / daemon / port.h
blob264835cf092c5b6077dde414ac7a3c2f509f2a78
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2009, 2010 Nedko Arnaudov <nedko@arnaudov.name>
7 **************************************************************************
8 * This file contains the interface of the port objects
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 PORT_H__62F81E7C_91FA_44AB_94A9_E0E2D226ED58__INCLUDED
28 #define PORT_H__62F81E7C_91FA_44AB_94A9_E0E2D226ED58__INCLUDED
30 #include "dict.h"
32 typedef struct ladish_port_tag { int unused; } * ladish_port_handle;
34 bool ladish_port_create(const uuid_t uuid_ptr, bool link, ladish_port_handle * port_handle_ptr);
35 bool ladish_port_create_copy(ladish_port_handle port_handle, ladish_port_handle * port_handle_ptr);
36 void ladish_port_destroy(ladish_port_handle port_handle);
37 ladish_dict_handle ladish_port_get_dict(ladish_port_handle port_handle);
38 void ladish_port_get_uuid(ladish_port_handle port_handle, uuid_t uuid);
40 void ladish_port_set_jack_id(ladish_port_handle port_handle, uint64_t jack_id);
41 uint64_t ladish_port_get_jack_id(ladish_port_handle port_handle);
42 void ladish_port_set_jack_id_room(ladish_port_handle port_handle, uint64_t jack_id);
43 uint64_t ladish_port_get_jack_id_room(ladish_port_handle port_handle);
45 void ladish_port_add_ref(ladish_port_handle port_handle);
46 void ladish_port_del_ref(ladish_port_handle port_handle);
48 bool ladish_port_is_link(ladish_port_handle port_handle);
50 void ladish_port_set_vgraph(ladish_port_handle port_handle, void * vgraph);
51 void * ladish_port_get_vgraph(ladish_port_handle port_handle);
53 void ladish_port_set_app(ladish_port_handle port, const uuid_t app_uuid);
54 bool ladish_port_get_app(ladish_port_handle port, uuid_t app_uuid);
55 bool ladish_port_has_app(ladish_port_handle port);
56 bool ladish_port_belongs_to_app(ladish_port_handle port, const uuid_t app_uuid);
58 #endif /* #ifndef PORT_H__62F81E7C_91FA_44AB_94A9_E0E2D226ED58__INCLUDED */