[cffi-devel] introspection in cffi
nitralime
nitralime at googlemail.com
Thu Apr 14 14:47:55 UTC 2011
/*Hi folks!*/
Is there a way to get the (meta) information
of structure slots defined by */defcstruct/*?
Consider the following concrete example:
(defcstruct test
(a :uint)
(b :char :count 10)
(c :pointer))
Is it possible to get info like type, (array-)size
of the slots /*a, b* /and /*c*/ by only introspecting '/*test*/'?
Something like
(foreign-slot-type 'test 'a) /*==> :char*/
(foreign-slot-count 'test 'b) /*==> 10*/
would be very useful!
Regards
Nik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20110414/95841733/attachment.html>
More information about the cffi-devel
mailing list