diff options
Diffstat (limited to 'harness/include')
| -rw-r--r-- | harness/include/plugin.h | 7 | ||||
| -rw-r--r-- | harness/include/plugin_types.h | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/harness/include/plugin.h b/harness/include/plugin.h index 46e833a..cc18158 100644 --- a/harness/include/plugin.h +++ b/harness/include/plugin.h @@ -9,6 +9,7 @@ #include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_keyboard.h> +#include "plugin_types.h" #include <foreign_intf.h> /* @@ -31,7 +32,6 @@ typedef void *dlhandle_t; /* Opaque state for a plugin. Not to be touched by the harness (not that it * really can be.) */ -typedef void *opqst_t; struct PLUGIN; /* This structure represents an action requested by the plugin for the harness. @@ -146,9 +146,8 @@ typedef struct PLUGIN { /* * Handles a surface being mapped, unmapped or destroyed. */ - EXPORT(opqst_t (*plugin_handle_surface_map)(void *surface, opqst_t)); - EXPORT(opqst_t (*plugin_handle_surface_unmap)(void *surface, opqst_t)); - EXPORT(opqst_t (*plugin_handle_surface_destroy)(void *surface, opqst_t)); + EXPORT(opqst_t (*plugin_handle_surface)(void *surface, surface_event_t event, + opqst_t)); /* List of requested actions by the plugin. Right now there is a maximum of 8 * allowed at one time. That should be plenty. The actions should be flushed diff --git a/harness/include/plugin_types.h b/harness/include/plugin_types.h new file mode 100644 index 0000000..df1eab5 --- /dev/null +++ b/harness/include/plugin_types.h @@ -0,0 +1,9 @@ +#pragma once + +typedef void *opqst_t; + +typedef enum { + SURFACE_MAP = 0, + SURFACE_UNMAP, + SURFACE_DELETE, +} surface_event_t; |