aboutsummaryrefslogtreecommitdiff
path: root/src/northstar.zig
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-06-09 20:03:14 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-06-09 20:03:14 +0200
commit3ccc1867c86aa0e21177420bba879495654b1b09 (patch)
tree4c9ac2f2a4596d53f2f4de55f07df89da7e5280c /src/northstar.zig
parentf1118e997d1642ca161868ee1bb348cc3ea23d7c (diff)
downloadSouthRPC-zig.tar.gz
SouthRPC-zig.zip
work towards hookszig
Diffstat (limited to 'src/northstar.zig')
-rw-r--r--src/northstar.zig8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/northstar.zig b/src/northstar.zig
index 8c659a7..10fd21b 100644
--- a/src/northstar.zig
+++ b/src/northstar.zig
@@ -7,13 +7,11 @@ pub const NorthstarData = extern struct {
handle: ?windows.HMODULE,
};
-pub var data: NorthstarData = .{
- .handle = null,
-};
+pub var plugin_handle: ?windows.HMODULE = null;
-pub var create_interface: ?*const fn ([*:0]const u8, ?*const interface.InterfaceStatus) callconv(.C) *anyopaque = null;
+pub var create_interface: interface.GetInterfaceType = null;
pub fn init(ns_module: windows.HMODULE, init_data: *NorthstarData) void {
create_interface = @ptrCast(windows.kernel32.GetProcAddress(ns_module, "CreateInterface"));
- data.handle = init_data.*.handle;
+ plugin_handle = init_data.*.handle;
}