2 * Carla JACK API for external applications
3 * Copyright (C) 2016-2020 Filipe Coelho <falktx@falktx.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * For a full copy of the GNU General Public License see the doc/GPL.txt file.
18 #ifndef CARLA_LIBJACK_HINTS_H_INCLUDED
19 #define CARLA_LIBJACK_HINTS_H_INCLUDED
21 #include "CarlaDefines.h"
28 // Application Window management
29 LIBJACK_FLAG_CONTROL_WINDOW
= 0x01,
30 LIBJACK_FLAG_CAPTURE_FIRST_WINDOW
= 0x02,
31 // Audio/MIDI Buffers management
32 LIBJACK_FLAG_AUDIO_BUFFERS_ADDITION
= 0x10,
33 LIBJACK_FLAG_MIDI_OUTPUT_CHANNEL_MIXDOWN
= 0x20,
34 // Developer options, not saved on disk
35 LIBJACK_FLAG_EXTERNAL_START
= 0x40,
39 LIBJACK_SESSION_MANAGER_NONE
= 0,
40 LIBJACK_SESSION_MANAGER_AUTO
= 1,
41 LIBJACK_SESSION_MANAGER_JACK
= 2,
42 LIBJACK_SESSION_MANAGER_LADISH
= 3,
43 LIBJACK_SESSION_MANAGER_NSM
= 4,
46 enum InterposerAction
{
47 LIBJACK_INTERPOSER_ACTION_NONE
= 0,
48 LIBJACK_INTERPOSER_ACTION_SET_HINTS_AND_CALLBACK
,
49 LIBJACK_INTERPOSER_ACTION_SET_SESSION_MANAGER
,
50 LIBJACK_INTERPOSER_ACTION_SHOW_HIDE_GUI
,
51 LIBJACK_INTERPOSER_ACTION_CLOSE_EVERYTHING
,
54 enum InterposerCallbacks
{
55 LIBJACK_INTERPOSER_CALLBACK_NONE
= 0,
56 LIBJACK_INTERPOSER_CALLBACK_UI_HIDE
,
59 typedef int (*CarlaInterposedCallback
)(int, void*);
62 int jack_carla_interposed_action(uint action
, uint value
, void* ptr
);
68 #endif // CARLA_LIBJACK_HINTS_H_INCLUDED