aboutsummaryrefslogtreecommitdiff
path: root/harness/include/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'harness/include/plugin.h')
-rw-r--r--harness/include/plugin.h7
1 files changed, 3 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