Mac VST-2.x support
[ardour.git] / libs / ardour / ardour / mac_vst_support.h
1 /*
2  * Copyright (C) 2016 Robin Gareus <robin@gareus.org>
3  * Copyright (C) 2012 Paul Davis
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2, or (at your option)
8  * any later version.
9  *
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.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef __mac_vst_support_h__
21 #define __mac_vst_support_h__
22
23 #include <setjmp.h>
24 #include <signal.h>
25 #include <pthread.h>
26 #include <stdio.h>
27
28 #include "ardour/libardour_visibility.h"
29 #include "ardour/vst_types.h"
30
31 LIBARDOUR_API extern void (*mac_vst_error_callback)(const char *msg);
32 LIBARDOUR_API void  mac_vst_error (const char *fmt, ...);
33
34 LIBARDOUR_API extern VSTHandle *  mac_vst_load (const char*);
35 LIBARDOUR_API extern int          mac_vst_unload (VSTHandle *);
36 LIBARDOUR_API extern VSTState *   mac_vst_instantiate (VSTHandle *, audioMasterCallback, void *);
37 LIBARDOUR_API extern void         mac_vst_close (VSTState*);
38
39 #endif /* ____mac_vst_support_h__ */