Skip to content

Commit d9becfa

Browse files
committed
Add type specs for tdb_init and tdb_cons_init, required on Darwin, but somehow worked without it on Linux
1 parent e66879d commit d9becfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

traildb/traildb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class tdb_event(Structure):
3333
("items", tdb_item * 0)]
3434

3535

36+
api(lib.tdb_cons_init, [], tdb_cons)
3637
api(lib.tdb_cons_open, [tdb_cons, c_char_p, POINTER(c_char_p), c_uint64], tdb_error)
3738
api(lib.tdb_cons_close, [tdb_cons])
3839
api(lib.tdb_cons_add,
@@ -41,6 +42,7 @@ class tdb_event(Structure):
4142
api(lib.tdb_cons_append, [tdb_cons, tdb], tdb_error)
4243
api(lib.tdb_cons_finalize, [tdb_cons, c_uint64], tdb_error)
4344

45+
api(lib.tdb_init, [], tdb)
4446
api(lib.tdb_open, [tdb, c_char_p], tdb_error)
4547
api(lib.tdb_close, [tdb])
4648

0 commit comments

Comments
 (0)