A foreign object, a pointer to a foreign object, or a foreign structure or union type.
The slot in object whose type is to be returned.
In the following example two new types,
are defined. Then a new structure,
, is defined, with two slots. An instance of the structure is created, and
is used to get the type of the first slot of the structure.
(fli:define-c-typedef EAST (:boolean :int))
(fli:define-c-typedef WEST :long)
(fli:foreign-slot-type 'COMPASS 'x)
(setq dir (fli:allocate-foreign-object :type 'COMPASS))
(fli:foreign-slot-type dir 'x)