monastery/types.lisp

20 lines
575 B
Common Lisp

(in-package :monastery)
;;; The types here will be used in the Core.lisp
;;; to define the return types and types used in the functions
;;; hence why it is separated, more organization and in case
;;; the ABI changes, it won't break everything
(defcstruct sized-data
(data :pointer)
(size :size-t))
(defcenum mdict-encoding-t
(:mdict-encoding-base64 0)
(:mdict-encoding-hex 1))
; naming type definition to make the references less verbose
(defctype s-data '(:struct sized-data))
(defctype mdict-encoding mdict-encoding-t)
(defctype simple-key-item :pointer)