ladish_control: python3 improvements
[ladish.git] / gui / a2j_proxy.hpp
blob5e5d10718d1885d015a393b45dc0ea7e35649104
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2008 Nedko Arnaudov <nedko@arnaudov.name>
7 **************************************************************************
8 * This file contains interface to code that interfaces a2jmidid through D-Bus
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 A2J_PROXY_HPP__24525CB1_8AED_4697_8C56_5C57473839CC__INCLUDED
28 #define A2J_PROXY_HPP__24525CB1_8AED_4697_8C56_5C57473839CC__INCLUDED
30 struct a2j_proxy_impl;
32 #define A2J_STATUS_NO_RESPONSE 0
33 #define A2J_STATUS_BRIDGE_STOPPED 1
34 #define A2J_STATUS_BRIDGE_STARTED 2
36 class a2j_proxy
38 public:
39 a2j_proxy();
40 ~a2j_proxy();
42 const char *
43 get_jack_client_name();
45 bool
46 map_jack_port(
47 const char * jack_port_name,
48 std::string& alsa_client_name,
49 std::string& alsa_port_name,
50 uint32_t& alsa_client_id);
52 void
53 start_bridge();
55 void
56 stop_bridge();
58 private:
59 a2j_proxy_impl * _impl_ptr;
62 #endif // #ifndef A2J_PROXY_HPP__24525CB1_8AED_4697_8C56_5C57473839CC__INCLUDED