Ardour  9.0-pre0-582-g084a23a80d
lv2_external_ui.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009-2015 Paul Davis <paul@linuxaudiosystems.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 /* -*- Mode: C ; c-basic-offset: 2 -*- */
20 /*****************************************************************************
21  *
22  * This work is in public domain.
23  *
24  * This file is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27  *
28  * If you have questions, contact Nedko Arnaudov <nedko@arnaudov.name> or
29  * ask in #lad channel, FreeNode IRC network.
30  *
31  *****************************************************************************/
32 
33 #ifndef LV2_EXTERNAL_UI_H__5AFE09A5_0FB7_47AF_924E_2AF0F8DE8873__INCLUDED
34 #define LV2_EXTERNAL_UI_H__5AFE09A5_0FB7_47AF_924E_2AF0F8DE8873__INCLUDED
35 
37 #define LV2_EXTERNAL_UI_URI "http://lv2plug.in/ns/extensions/ui#external"
38 
39 #define LV2_EXTERNAL_UI_KX__Host "http://kxstudio.sf.net/ns/lv2ext/external-ui#Host"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 #if 0
45 } /* Adjust editor indent */
46 #endif
47 
54 {
61  void (* run)(struct lv2_external_ui * _this_);
62 
68  void (* show)(struct lv2_external_ui * _this_);
69 
75  void (* hide)(struct lv2_external_ui * _this_);
76 };
77 
78 #define LV2_EXTERNAL_UI_RUN(ptr) (ptr)->run(ptr)
79 #define LV2_EXTERNAL_UI_SHOW(ptr) (ptr)->show(ptr)
80 #define LV2_EXTERNAL_UI_HIDE(ptr) (ptr)->hide(ptr)
81 
86 {
100  void (* ui_closed)(void* controller);
101 
111  const char * plugin_human_id;
112 };
113 
114 #if 0
115 { /* Adjust editor indent */
116 #endif
117 #ifdef __cplusplus
118 } /* extern "C" */
119 #endif
120 
121 #endif /* #ifndef LV2_EXTERNAL_UI_H__5AFE09A5_0FB7_47AF_924E_2AF0F8DE8873__INCLUDED */
void(* ui_closed)(void *controller)
const char * plugin_human_id
void(* hide)(struct lv2_external_ui *_this_)
void(* show)(struct lv2_external_ui *_this_)
void(* run)(struct lv2_external_ui *_this_)