Compare commits

...
Author SHA1 Message Date
jean0t
6ca4b1c2fd feat: defined functions from the C ABI <incomplete> 2026-01-28 21:56:57 -03:00
jean0t
88afa56aad feat: added alias to opaque struct simple_key_item 2026-01-28 21:56:37 -03:00
2 changed files with 25 additions and 0 deletions

View file

@ -1 +1,25 @@
(in-package :monastery)
(defcfun ("mdict_init" %mdict_init) :pointer
(dictionary_path :string))
(defcfun ("mdict_lookup" %mdict_lookup) :void
(dict :pointer)
(word :string)
(result (:pointer :string)))
(defcfun ("mdict_locate" %mdict_locate) :void
(dict :pointer)
(word :string)
(result (:pointer :string))
(encoding mdict-encoding))
(defcfun ("mdict_parse_definition" %mdict_parse_definition) :void
(dict :pointer)
(word :string)
(record_start :unsigned-long)
(result (:pointer :string)))
(defcfun ("mdict_keylist" %mdict_keylist) (:pointer simple-key-item)
(dict :pointer)
(len (:pointer :uint64)))

View file

@ -11,3 +11,4 @@
(defctype s-data '(:struct sized-data))
(defctype mdict-encoding mdict-encoding-t)
(defctype simple-key-item :pointer)