X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=uffi%2Fclsql-uffi.lisp;fp=uffi%2Fclsql-uffi.lisp;h=d901481dce0dbbe853e997cad73717e911b228c4;hp=c12f693368887598e3d41852d317cf446b81c288;hb=2d7fb2dcce0f94745672b4f2aff6be39d610a063;hpb=dc86bc45222a39ff2c977bdd8c0992940ac72385 diff --git a/uffi/clsql-uffi.lisp b/uffi/clsql-uffi.lisp index c12f693..d901481 100644 --- a/uffi/clsql-uffi.lisp +++ b/uffi/clsql-uffi.lisp @@ -54,7 +54,9 @@ (:int64 (if (eq :int64 (nth i auto-list)) :int64 - t)) + t)) + (:blob + :blob) (t t)) new-types)))) @@ -116,7 +118,11 @@ (high32 (uffi:deref-pointer high32-ptr :int))) (if (zerop high32) low32 - (make-64-bit-integer high32 low32))))) + (make-64-bit-integer high32 low32))))) + (:blob + (if length + (uffi:convert-from-foreign-usb8 char-ptr length) + (error "Can't return blob since length is not specified."))) (t (if length (uffi:convert-from-foreign-string char-ptr :locale :none