aboutsummaryrefslogtreecommitdiff
path: root/rt/include/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'rt/include/plugin.h')
-rw-r--r--rt/include/plugin.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/rt/include/plugin.h b/rt/include/plugin.h
index 4d69d76..16823e8 100644
--- a/rt/include/plugin.h
+++ b/rt/include/plugin.h
@@ -5,13 +5,11 @@
#include <linux/limits.h>
#include <pthread.h>
#include <stdint.h>
-#include <stdlib.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_keyboard.h>
#include <wlr/types/wlr_pointer.h>
#include "plugin_types.h"
-#include <foreign_intf.h>
/*
* Marker macro to define what functions should be exported. This generates the
@@ -22,7 +20,6 @@
#define EXPORT_INCLUDE(a)
// clang-format off
-EXPORT_INCLUDE(<foreign_intf.h>)
EXPORT_INCLUDE(<wlr/types/wlr_keyboard.h>)
EXPORT_INCLUDE(<wlr/types/wlr_input_device.h>)
EXPORT_INCLUDE(<wlr/types/wlr_pointer.h>)
@@ -61,9 +58,6 @@ typedef struct PLUGIN {
/* Filename the plugin is loaded from. */
char filename[PATH_MAX];
- /* Interface to the harness that this plugin can use. */
- foreign_interface_t foreign_intf;
-
/* Opaque state of this plugin. The state is usually some kind of pointer to
* the plugin state, but all the harness knows is the opaque state is a
* pointer-sized piece of data.
@@ -104,7 +98,7 @@ typedef struct PLUGIN {
/** Intializes the plugin with the given argc/argv. This is the first thing
* called on the plugin and is called immediately after the library is loaded.
*/
- EXPORT(void (*plugin_load)(int argc, char **argv, foreign_interface_t *intf));
+ EXPORT(void (*plugin_load)(int argc, char **argv));
/* Start the plugin with the marshalled state from the previous plugin.
*
@@ -115,13 +109,14 @@ typedef struct PLUGIN {
* hot-reloading can produce incompatibilities between the old state and the
* new state, and this should not cause a failure.
*/
- EXPORT(opqst_t (*plugin_hot_start)(uint8_t *mashalled_state, uint32_t n));
+ EXPORT(opqst_t (*plugin_hot_start)(void *self, uint8_t *mashalled_state,
+ uint32_t n));
/*
* Starts the plugin without a marshalled state. Happens during the first boot
* when there is not state.
*/
- EXPORT(opqst_t (*plugin_cold_start)());
+ EXPORT(opqst_t (*plugin_cold_start)(void* self));
/*
* Marshals the state to a bytestring. The returned pointer should be malloc'd