diff options
author | Maxim Devaev <[email protected]> | 2022-01-18 09:25:17 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-01-18 09:25:17 +0300 |
commit | 3ab43edeb962e95402ab0e18c553665ffd6117f0 (patch) | |
tree | abd46db985273d9964ed09400dd608a23d2579a4 /kvmd/libc.py | |
parent | 3ee1948f19ca3e1a3d396e29dc902aeec4402479 (diff) |
pikvm/kvmd#66: OCR API
Diffstat (limited to 'kvmd/libc.py')
-rw-r--r-- | kvmd/libc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/libc.py b/kvmd/libc.py index a1892d94..46e6278c 100644 --- a/kvmd/libc.py +++ b/kvmd/libc.py @@ -28,6 +28,7 @@ import ctypes.util from ctypes import c_int from ctypes import c_uint32 from ctypes import c_char_p +from ctypes import c_void_p # ===== @@ -41,6 +42,7 @@ def _load_libc() -> ctypes.CDLL: ("inotify_init", c_int, []), ("inotify_add_watch", c_int, [c_int, c_char_p, c_uint32]), ("inotify_rm_watch", c_int, [c_int, c_uint32]), + ("free", c_int, [c_void_p]), ]: func = getattr(lib, name) if not func: @@ -57,3 +59,4 @@ _libc = _load_libc() inotify_init = _libc.inotify_init inotify_add_watch = _libc.inotify_add_watch inotify_rm_watch = _libc.inotify_rm_watch +free = _libc.free |