Make core:dynlib use the private interface convention of other packages

This commit is contained in:
gingerBill
2022-05-25 11:43:56 +01:00
parent a31d23a32a
commit acadbe050c
3 changed files with 32 additions and 18 deletions
+12
View File
@@ -1,3 +1,15 @@
package dynlib
Library :: distinct rawptr
load_library :: proc(path: string, global_symbols := false) -> (Library, bool) {
return _load_library(path, global_symbols)
}
unload_library :: proc(library: Library) -> bool {
return _unload_library(library)
}
symbol_address :: proc(library: Library, symbol: string) -> (ptr: rawptr, found: bool) {
return _symbol_address(library, symbol)
}