1 /* Calf DSP Library Utility Application - calfjackhost
2 * Internal session manager API
4 * Copyright (C) 2010 Krzysztof Foltman
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #ifndef CALF_SESSION_MGR_H
22 #define CALF_SESSION_MGR_H
26 namespace calf_plugins
{
28 struct session_load_iface
30 virtual bool get_next_item(std::string
&key
, std::string
&value
) = 0;
31 virtual ~session_load_iface() {}
34 struct session_save_iface
36 virtual void write_next_item(const std::string
&key
, const std::string
&value
) = 0;
37 virtual ~session_save_iface() {}
40 struct session_client_iface
42 virtual void load(session_load_iface
*) = 0;
43 virtual void save(session_save_iface
*) = 0;
44 virtual ~session_client_iface() {}
47 struct session_manager_iface
49 virtual bool is_being_restored() = 0;
50 virtual void set_jack_client_name(const std::string
&name
) = 0;
51 virtual void connect(const std::string
&name
) = 0;
52 virtual void poll() = 0;
53 virtual void disconnect() = 0;
54 virtual ~session_manager_iface() {}
58 extern session_manager_iface
*create_lash_session_mgr(session_client_iface
*client
, int &argc
, char **&argv
);