diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2026-01-06 23:08:25 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2026-01-06 23:09:52 -0700 |
| commit | 37e5037b68fb35276f0c426779f61aa278d5b21b (patch) | |
| tree | 94e0b7a413b2899e7114c7453cd0f234a438ce15 /arken/include/plugin_interface.h | |
| parent | 09860c75bb129c70768692aaec3bd42d0b2735e3 (diff) | |
| download | montis-37e5037b68fb35276f0c426779f61aa278d5b21b.tar.gz montis-37e5037b68fb35276f0c426779f61aa278d5b21b.tar.bz2 montis-37e5037b68fb35276f0c426779f61aa278d5b21b.zip | |
[reorg] use X macro system rather than perl generation.
This remove the dependency on Perl and makes things less brittle.
Diffstat (limited to 'arken/include/plugin_interface.h')
| -rw-r--r-- | arken/include/plugin_interface.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arken/include/plugin_interface.h b/arken/include/plugin_interface.h new file mode 100644 index 0000000..0583289 --- /dev/null +++ b/arken/include/plugin_interface.h @@ -0,0 +1,23 @@ +#ifndef _PLUG_INTF +#define _PLUG_INTF + +#include <stdint.h> + +#include "plugin_types.h" +#include "plugin_exports.h" + +#include <wlr/types/wlr_input_device.h> +#include <wlr/types/wlr_keyboard.h> +#include <wlr/types/wlr_pointer.h> + +/* + * Plugin ABI: plugins must export these symbols. + * + * This header is intended to be included by plugin implementations. + */ + +#define DECLARE_PLUGIN_EXPORT(ret, name, args) ret name args; +MONTIS_PLUGIN_EXPORTS(DECLARE_PLUGIN_EXPORT) +#undef DECLARE_PLUGIN_EXPORT + +#endif /* _PLUG_INTF */ |