diff options
author | Josh Rahm <rahm@google.com> | 2024-02-22 16:07:54 -0700 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2024-02-22 16:08:38 -0700 |
commit | 320d4a87447491abd1fa0cfa898bd6b5ae73dee9 (patch) | |
tree | 923347ae3fbcef1b3fe20ca4f6fca69fda3ff05b /harness/include/plugin.h | |
parent | 0724c6d9cd77d83bd113204bdec5ac23491c35d7 (diff) | |
download | wetterhorn-320d4a87447491abd1fa0cfa898bd6b5ae73dee9.tar.gz wetterhorn-320d4a87447491abd1fa0cfa898bd6b5ae73dee9.tar.bz2 wetterhorn-320d4a87447491abd1fa0cfa898bd6b5ae73dee9.zip |
better surface handling
Diffstat (limited to 'harness/include/plugin.h')
-rw-r--r-- | harness/include/plugin.h | 7 |
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 |