You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.9 KiB
71 lines
1.9 KiB
/* |
|
* Copyright (C) 2021 Alexandros Theodotou <alex at zrythm dot org> |
|
* |
|
* This program is free software: you can redistribute it and/or modify |
|
* it under the terms of the GNU Affero General Public License as published by |
|
* the Free Software Foundation, either version 3 of the License, or |
|
* (at your option) any later version. |
|
* |
|
* This program 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 Affero General Public License for more details. |
|
* |
|
* You should have received a copy of the GNU Affero General Public License |
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. |
|
*/ |
|
|
|
#ifndef __CARLA_API_TESTER_APP_H__ |
|
#define __CARLA_API_TESTER_APP_H__ |
|
|
|
#include <CarlaHost.h> |
|
#include <CarlaNativePlugin.h> |
|
#include <CarlaUtils.h> |
|
#include <gtk/gtk.h> |
|
|
|
#define CARLA_API_TESTER_APP_TYPE \ |
|
(carla_api_tester_app_get_type ()) |
|
|
|
G_DECLARE_FINAL_TYPE ( |
|
CarlaApiTesterApp, carla_api_tester_app, |
|
CARLA_API_TESTER, APP, GtkApplication) |
|
|
|
/** |
|
* The global struct. |
|
* |
|
* Contains data that is only relevant to the GUI |
|
* and not to CarlaApiTester. |
|
*/ |
|
struct _CarlaApiTesterApp |
|
{ |
|
GtkApplication parent; |
|
|
|
const char * plugin; |
|
const char * format; |
|
const char * bridge; |
|
bool woe32_binary; |
|
|
|
NativePluginHandle native_plugin_handle; |
|
NativeHostDescriptor native_host_descriptor; |
|
const NativePluginDescriptor * native_plugin_descriptor; |
|
NativeTimeInfo time_info; |
|
|
|
CarlaHostHandle host_handle; |
|
}; |
|
|
|
/** |
|
* Global variable, should be available to all files. |
|
*/ |
|
extern CarlaApiTesterApp * carla_api_tester_app; |
|
|
|
/** |
|
* Creates the CarlaApiTester GApplication. |
|
*/ |
|
CarlaApiTesterApp * |
|
carla_api_tester_app_new ( |
|
const char * plugin, |
|
const char * format, |
|
const char * bridge, |
|
bool woe32_binary); |
|
|
|
#endif /* __CARLA_API_TESTER_APP_H__ */
|
|
|