A sequence of one or more slots making up the structure.
A symbol naming the slot.
The slot type. If no type is given it defaults to an
An integer type. Only
(:unsigned :int) and
(:signed :int) are guaranteed to work on all platforms.
An integer specifying a number of bits for the field.
:struct type is an aggregate type, and converts between a FLI structure and a C
struct type. The FLI structure consists of a collection of one or more slots. Each slot has a name and a type. A structure can also contain bit fields, which are integers with a specified number of bits.
The foreign-slot-names, foreign-slot-type, and foreign-slot-value functions can be used to access and change the slots of the structure. The convenience FLI function define-c-struct is provided to simplify the definition of structures.
(fli:define-c-struct tagPOINT (x :long) (y :long))
(setf (fli:foreign-slot-value place 'x) 4)
LispWorks Foreign Language Interface User Guide and Reference Manual - 16 Feb 2015