2009-07-30 01:16:07 +03:00
|
|
|
/* -*- Mode: C ; c-basic-offset: 2 -*- */
|
|
|
|
/*
|
|
|
|
* LADI Session Handler (ladish)
|
|
|
|
*
|
2008-08-02 06:54:06 +03:00
|
|
|
* Copyright (C) 2008 Nedko Arnaudov <nedko@arnaudov.name>
|
2009-07-30 01:16:07 +03:00
|
|
|
*
|
|
|
|
**************************************************************************
|
|
|
|
* This file contains interface to code that interfaces a2jmidid through D-Bus
|
|
|
|
**************************************************************************
|
|
|
|
*
|
|
|
|
* 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.
|
2008-08-02 06:54:06 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef A2J_PROXY_HPP__24525CB1_8AED_4697_8C56_5C57473839CC__INCLUDED
|
|
|
|
#define A2J_PROXY_HPP__24525CB1_8AED_4697_8C56_5C57473839CC__INCLUDED
|
|
|
|
|
|
|
|
struct a2j_proxy_impl;
|
|
|
|
|
2008-09-13 12:41:35 +03:00
|
|
|
#define A2J_STATUS_NO_RESPONSE 0
|
|
|
|
#define A2J_STATUS_BRIDGE_STOPPED 1
|
|
|
|
#define A2J_STATUS_BRIDGE_STARTED 2
|
|
|
|
|
2008-08-02 06:54:06 +03:00
|
|
|
class a2j_proxy
|
|
|
|
{
|
|
|
|
public:
|
2009-07-20 04:59:25 +03:00
|
|
|
a2j_proxy();
|
|
|
|
~a2j_proxy();
|
2008-08-02 06:54:06 +03:00
|
|
|
|
2009-07-20 04:59:25 +03:00
|
|
|
const char *
|
|
|
|
get_jack_client_name();
|
2008-08-02 06:54:06 +03:00
|
|
|
|
2009-07-20 04:59:25 +03:00
|
|
|
bool
|
|
|
|
map_jack_port(
|
|
|
|
const char * jack_port_name,
|
2009-07-30 01:53:36 +03:00
|
|
|
std::string& alsa_client_name,
|
|
|
|
std::string& alsa_port_name,
|
2009-07-20 04:59:25 +03:00
|
|
|
uint32_t& alsa_client_id);
|
2008-08-02 17:13:39 +03:00
|
|
|
|
2009-07-20 04:59:25 +03:00
|
|
|
void
|
|
|
|
start_bridge();
|
2008-09-13 15:26:22 +03:00
|
|
|
|
2009-07-20 04:59:25 +03:00
|
|
|
void
|
|
|
|
stop_bridge();
|
2008-09-13 15:26:22 +03:00
|
|
|
|
2008-08-02 06:54:06 +03:00
|
|
|
private:
|
2009-07-20 04:59:25 +03:00
|
|
|
a2j_proxy_impl * _impl_ptr;
|
2008-08-02 06:54:06 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // #ifndef A2J_PROXY_HPP__24525CB1_8AED_4697_8C56_5C57473839CC__INCLUDED
|