Package: cffi

Function foreign-slot-names

Lambda List

foreign-slot-names (type)

Arguments

type -- A foreign struct type.
names -- A list.

Details

The function foreign-slot-names returns a potentially shared list of slot names for the given structure type. This list has no particular order.

Examples

  (defcstruct timeval
    (tv-secs :long)
    (tv-usecs :long))

CFFI> (foreign-slot-names 'timeval) => (TV-SECS TV-USECS)
 

See also