Cleanup
[carla.git] / source / frontend / CarlaFrontend.h
blob4d2500bcd90569526a2d5cfba5ba9fe23cec5e1a
1 // SPDX-FileCopyrightText: 2011-2024 Filipe Coelho <falktx@falktx.com>
2 // SPDX-License-Identifier: GPL-2.0-or-later
4 #pragma once
6 #include "CarlaBackend.h"
8 #ifdef __cplusplus
9 using CARLA_BACKEND_NAMESPACE::PluginType;
10 extern "C" {
11 #endif
13 // --------------------------------------------------------------------------------------------------------------------
15 typedef struct {
16 const char* command;
17 const char* name;
18 const char* labelSetup;
19 } JackAppDialogResults;
21 typedef struct _HostSettings {
22 bool showPluginBridges;
23 bool showWineBridges;
24 bool useSystemIcons;
25 bool wineAutoPrefix;
26 const char* wineExecutable;
27 const char* wineFallbackPrefix;
28 } HostSettings;
30 typedef struct {
31 uint build;
32 uint type;
33 uint hints;
34 const char* category;
35 const char* filename;
36 const char* name;
37 const char* label;
38 const char* maker;
39 uint64_t uniqueId;
40 uint audioIns;
41 uint audioOuts;
42 uint cvIns;
43 uint cvOuts;
44 uint midiIns;
45 uint midiOuts;
46 uint parameterIns;
47 uint parameterOuts;
48 } PluginListDialogResults;
50 #ifdef __cplusplus
51 class PluginListDialog;
52 #else
53 struct PluginListDialog;
54 #endif
56 // --------------------------------------------------------------------------------------------------------------------
58 CARLA_PLUGIN_EXPORT const JackAppDialogResults*
59 carla_frontend_createAndExecJackAppDialog(void* parent, const char* projectFilename);
61 CARLA_PLUGIN_EXPORT PluginListDialog*
62 carla_frontend_createPluginListDialog(void* parent, const HostSettings* hostSettings);
64 CARLA_PLUGIN_EXPORT void
65 carla_frontend_destroyPluginListDialog(PluginListDialog* dialog);
67 // TODO get favorites
69 CARLA_PLUGIN_EXPORT void
70 carla_frontend_setPluginListDialogPath(PluginListDialog* dialog, int ptype, const char* path);
72 CARLA_PLUGIN_EXPORT const PluginListDialogResults*
73 carla_frontend_execPluginListDialog(PluginListDialog* dialog);
75 // CARLA_PLUGIN_EXPORT const PluginListDialogResults*
76 // carla_frontend_createAndExecPluginListDialog(void* parent, const HostSettings* hostSettings);
78 // --------------------------------------------------------------------------------------------------------------------
80 #ifdef __cplusplus
82 #endif