From 320d4a87447491abd1fa0cfa898bd6b5ae73dee9 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Thu, 22 Feb 2024 16:07:54 -0700 Subject: better surface handling --- harness/include/plugin.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'harness/include/plugin.h') 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 #include +#include "plugin_types.h" #include /* @@ -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 -- cgit