Add flags argument to WeaselJsonParser_create

This commit is contained in:
2025-06-25 16:44:31 -04:00
parent 01d81981f7
commit 3e72181bee
7 changed files with 24 additions and 17 deletions

View File

@@ -92,6 +92,7 @@ class WeaselJsonParser:
ctypes.c_int,
ctypes.POINTER(WeaselJsonCallbacks),
ctypes.c_void_p,
ctypes.c_int,
)
self._lib.WeaselJsonParser_create.restype = ctypes.c_void_p
self._lib.WeaselJsonParser_reset.argtypes = (ctypes.c_void_p,)
@@ -110,6 +111,7 @@ class WeaselJsonParser:
stackSize,
c_callbacks,
self.voidp_callbacks,
0,
)
def parse(self, data: bytes) -> WeaselJsonStatus: