clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit e9cbef78cae9a60923a0ab9111fe25022cbf18ae
parent ef89dbf6fbcba0188093aa8a62eb6a408f5a21e8
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Thu, 28 Apr 2016 16:18:20 +0200

Add embed for cocoa

Diffstat:
Ainclude/clap/ext/embed-cocoa.h | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)

diff --git a/include/clap/ext/embed-cocoa.h b/include/clap/ext/embed-cocoa.h @@ -0,0 +1,25 @@ +#ifndef CLAP_EXT_EMBED_COCOA_H +# define CLAP_EXT_EMBED_COCOA_H + +# include "../clap.h" +# include "embed.h" + +# define CLAP_EXT_EMBED_COCOA "clap/embed/cocoa" + +struct clap_plugin_embed_cooca +{ + void (*get_size)(struct clap_plugin *plugin, + int32_t *width, + int32_t *height); + + /* Note for the client, you can get a Display* by calling + * XOpenDisplay(display_name). + * + * Note for the host, the display_name can be retrieved from your own + * display->display_name. */ + bool (*attach)(struct clap_plugin *plugin, + void *nsView); + bool (*detach)(struct clap_plugin *plugin); +}; + +#endif /* !CLAP_EXT_EMBED_COCOA_H */