aboutsummaryrefslogtreecommitdiff
path: root/rt/include/foreign_intf.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2026-01-01 23:41:11 -0700
committerJosh Rahm <joshuarahm@gmail.com>2026-01-01 23:41:11 -0700
commit418d2b2b0829ed17e523867896ea321fc2b3a79b (patch)
treeda0fad8ae1d46bb30ab2e2ea1fe4fa4f7c51aed6 /rt/include/foreign_intf.h
parent1df0b552f17f15942a350def6736d5535e545d4c (diff)
downloadmontis-418d2b2b0829ed17e523867896ea321fc2b3a79b.tar.gz
montis-418d2b2b0829ed17e523867896ea321fc2b3a79b.tar.bz2
montis-418d2b2b0829ed17e523867896ea321fc2b3a79b.zip
[refactor] Remove the foregin interface.
The plugin will just call c functions through the FFI.
Diffstat (limited to 'rt/include/foreign_intf.h')
-rw-r--r--rt/include/foreign_intf.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/rt/include/foreign_intf.h b/rt/include/foreign_intf.h
deleted file mode 100644
index 6558fab..0000000
--- a/rt/include/foreign_intf.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Contains a structure, which contains functions to back-call into
- * the harness code. */
-
-#ifndef __FOREIGN_INTERFACE
-#define __FOREIGN_INTERFACE
-
-#define EXPORT(a) a
-
-typedef void *ctx_t;
-
-typedef struct FOREIGN_INTERFACE {
- /* DO NOT ADD ANY UNEXPORTED VARIABLES HERE */
-
- /* The context, which needs to be passed to each function. This context is
- * opaque to the plugin and should not be changed. */
- EXPORT(ctx_t ctx);
-
- /* Requests the harness hot reload the current plugin. */
- EXPORT(void (*request_hot_reload)(ctx_t ctx));
-
- /* Requests the harness hot reload the current plugin. */
- EXPORT(void (*do_log)(ctx_t ctx, const char *str));
-
- /* Requestes that the whole system exit. Exits with the given return code. */
- EXPORT(void (*request_exit)(ctx_t ctx, int rc));
-
- /* Returns the seat associated with the server. */
- EXPORT(void *(*get_seat)(ctx_t ctx));
-} foreign_interface_t;
-
-#undef EXPORT
-
-#endif /* __FOREIGN_INTERFACE */