feat: defined functions from the C ABI <incomplete>
This commit is contained in:
parent
88afa56aad
commit
6ca4b1c2fd
1 changed files with 24 additions and 0 deletions
24
core.lisp
24
core.lisp
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue