clap

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

commit bda0c5c8ed5aa4969187bef6685f2b23c4660b5e
parent 40646169ea79b048548d7becd5b766aa4a398f0a
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Thu,  3 Mar 2016 21:06:20 +0100

embed/xlib becomes embed/x11

Diffstat:
Ainclude/clap/ext/embed-x11.h | 24++++++++++++++++++++++++
Dinclude/clap/ext/embed-xlib.h | 26--------------------------
2 files changed, 24 insertions(+), 26 deletions(-)

diff --git a/include/clap/ext/embed-x11.h b/include/clap/ext/embed-x11.h @@ -0,0 +1,24 @@ +#ifndef CLAP_EXT_EMBED_X11_H +# define CLAP_EXT_EMBED_X11_H + +# include "../clap.h" +# include "embed.h" + +# define CLAP_EXT_EMBED_X11 "clap/embed/x11" + +struct clap_plugin_embed_x11 +{ + void (*get_size)(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, + unsigned long window, + const char *display_name); + bool (*detach)(struct clap_plugin *plugin); +}; + +#endif /* !CLAP_EMBED_XLIB_H */ diff --git a/include/clap/ext/embed-xlib.h b/include/clap/ext/embed-xlib.h @@ -1,26 +0,0 @@ -#ifndef CLAP_EXT_EMBED_XLIB_H -# define CLAP_EXT_EMBED_XLIB_H - -# include <X11/Xlib.h> - -# include "../clap.h" -# include "embed.h" - -# define CLAP_EXT_EMBED_XLIB "clap/embed/xlib" - -struct clap_plugin_embed_xlib -{ - void (*get_size)(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, - Window window, - const char *display_name); - bool (*detach)(struct clap_plugin *plugin); -}; - -#endif /* !CLAP_EMBED_XLIB_H */