Package Cffi - internal and external symbols

Part of:

asdf-system cityscape-builder, asdf-system cityscape-osd, asdf-system cityscape-city, asdf-system cityscape-terrain, asdf-system cityscape-building, asdf-system cityscape-draw, asdf-system cityscape-input, asdf-system cityscape-externals, asdf-system cl-glfw-opengl-version_1_1, asdf-system cl-glfw, asdf-system cityscape-util, asdf-system cityscape-craft, asdf-system cffi
See only external symbols
Package Cffi uses the packages Cffi-Sys, Cffi-Utils and Common-Lisp. It has 230 total symbols and 52 external ones.

Condition

load-foreign-library-error

Class

aggregate-struct-slotAggregate structure slots.
foreign-bitfieldDescribes a foreign bitfield type.
foreign-built-in-typeA built-in foreign type.
foreign-enumDescribes a foreign enumerated type.
foreign-pointer-type
foreign-struct-slotBase class for simple and aggregate slots.
foreign-struct-typeHash table of plists containing slot information.
foreign-typeContains information about a basic foreign type.
foreign-type-aliasA type that aliases another type.
foreign-type-wrapperClass for the wrapper type.
foreign-typedef
simple-struct-slotNon-aggregate structure slots.

Variable

*cffi-feature-suffix-map*Mapping of OS feature keywords to shared library suffixes.
*darwin-framework-directories*List of directories where Frameworks are searched for.
*foreign-libraries*Hashtable of defined libraries.
*foreign-library-directories*List onto which user-defined library paths can be pushed.
*foreign-types*Hash table of all user-defined foreign types.
*type-parsers*Hash table of defined type parsers.

Function

%defcfun
%defcfun-varargs
%expand-type-from-foreign
%expand-type-to-foreign
%expand-type-to-foreign-dyn
%foreign-bitfield-symbols
%foreign-bitfield-value
%foreign-enum-keyword
%foreign-enum-value
adjust-for-alignmentReturn OFFSET aligned properly for TYPE according to ALIGNMENT-TYPE.
canonicalize-foreign-typeConvert TYPE to a built-in type by following aliases.
Signals an error if the type cannot be reso...
cffi-feature-pMatches a FEATURE-EXPRESSION against the symbols in *FEATURES*
that belong to the CFFI-FEATURES p...
close-foreign-libraryCloses a foreign library NAME.
convert-from-foreign
convert-to-foreign
default-library-suffixReturn a string to use as default library suffix based on the
operating system. This is used to ...
defcfun-helper-forms
find-darwin-frameworkSearches for FRAMEWORK-NAME in *DARWIN-FRAMEWORK-DIRECTORIES*.
find-fileSearches for PATH in a list of DIRECTORIES and returns the first it finds.
find-typeReturn the foreign type instance for NAME or nil.
find-type-or-loseReturn the foreign type instance for NAME or signal an error.
find-type-parserReturn the type parser for SYMBOL.
follow-typedefs
foreign-allocAllocate enough memory to hold COUNT objects of type TYPE. If
INITIAL-ELEMENT is supplied, each e...
foreign-bitfield-symbolsConvert an integer VALUE into a list of matching symbols according to
the bitfield TYPE.
foreign-bitfield-valueConvert a list of symbols into an integer according to the TYPE bitfield.
foreign-enum-keywordConvert an integer VALUE into a keyword according to the enum TYPE.
foreign-enum-valueConvert a KEYWORD into an integer according to the enum TYPE.
foreign-function-nameReturn the foreign function name of NAME.
foreign-slot-namesReturns a list of TYPE's slot names in no particular order.
foreign-slot-offsetReturn the offset of SLOT in a struct TYPE.
foreign-slot-pointerReturn the address of SLOT-NAME in the structure at PTR.
foreign-slot-setSet the value of SLOT-NAME in a foreign structure.
foreign-slot-valueReturn the value of SLOT-NAME in the foreign structure at PTR.
foreign-string-allocAllocate a foreign string containing Lisp string STRING.
The string must be freed with FOREIGN-ST...
foreign-string-freeFree a foreign string allocated by FOREIGN-STRING-ALLOC.
foreign-string-to-lispCopy at most SIZE characters from PTR into a Lisp string.
If PTR is a null pointer, returns nil.
foreign-symbol-pointer-or-loseLike foreign-symbol-ptr but throws an error instead of
returning nil when foreign-name is not fou...
foreign-var-nameReturn the foreign var name of NAME.
free-converted-object
get-alignmentReturn alignment for TYPE according to ALIGNMENT-TYPE.
get-callback
get-foreign-libraryLook up a library by NAME, signalling an error if not found.
get-slot-infoReturn the slot info for SLOT-NAME or raise an error.
get-var-pointerReturn a pointer to the foreign global variable relative to SYMBOL.
handle-load-foreign-library-error
inverse-translate-objects
lisp-function-nameReturn the Lisp function name for foreign function NAME.
lisp-string-to-foreignCopy at most SIZE-1 characters from a Lisp STRING to PTR.
The foreign string will be null-termina...
lisp-var-nameReturn the Lisp symbol for foreign var NAME.
load-darwin-frameworkTries to find and load a darwin framework in one of the directories
in *DARWIN-FRAMEWORK-DIRECTOR...
load-foreign-libraryLoads a foreign LIBRARY which can be a symbol denoting a library defined
through DEFINE-FOREIGN-L...
load-foreign-library-nameTries to load NAME using %LOAD-FOREIGN-LIBRARY which should try and
find it using the OS's usual ...
make-foreign-bitfieldMakes a new instance of the foreign-bitfield class.
make-foreign-enumMakes a new instance of the foreign-enum class.
make-struct-slotMake the appropriate type of structure slot.
mem-arefLike MEM-REF except for accessing 1d arrays.
mem-refReturn the value of TYPE at OFFSET bytes from PTR. If TYPE is aggregate,
we don't return its 'val...
mem-setSet the value of TYPE at OFFSET bytes from PTR to VALUE.
mini-evalSimple EVAL-like function to evaluate the elements of
*FOREIGN-LIBRARY-DIRECTORIES* and *DARWIN-F...
notice-foreign-struct-definitionParse and install a foreign structure definition.
notice-foreign-typeInserts TYPE in the *FOREIGN-TYPES* hashtable.
notice-foreign-union-definitionParse and install a foreign union definition.
parse-args-and-typesReturns 4 values. Types, canonicalized types, args and return type.
parse-type
promote-varargs-typeDefault argument promotions.
read-new-value
specializedpAnswer whether GF has more than one applicable method for ARGS.
translate-objectsHelper function for FOREIGN-FUNCALL and DEFCFUN.
try-foreign-library-alternativesGoes through a list of alternatives and only signals an error when
none of alternatives were succ...
unparse-typeUnparse a foreign type to a symbol or list type spec.

Generic-Function

aggregatepReturn true if FOREIGN-TYPE is an aggregate type.
canonicalizeReturn the built-in foreign type for FOREIGN-TYPE.
Signals an error if FOREIGN-TYPE is undefined.
expand-from-foreign
expand-to-foreign
expand-to-foreign-dyn
expand-type-from-foreign
expand-type-to-foreign
expand-type-to-foreign-dyn
foreign-struct-slot-pointerGet the address of SLOT relative to PTR.
foreign-struct-slot-pointer-formReturn a form to get the address of SLOT in PTR.
foreign-struct-slot-set-formReturn a form to set the value of SLOT in struct PTR.
foreign-struct-slot-valueReturn the value of SLOT in structure PTR.
foreign-struct-slot-value-formReturn a form to get the value of SLOT in struct PTR.
foreign-type-alignmentReturn the structure alignment in bytes of a foreign type.
foreign-type-sizeReturn the size in bytes of a foreign type.
free-translated-object
free-type-translated-object
text
translate-from-foreign
translate-pReturn true if type translators should run on FOREIGN-TYPE.
translate-to-foreign
translate-type-from-foreign
translate-type-to-foreign
unparseUnparse FOREIGN-TYPE to a type specification (symbol or list).

Macro

callback
defbitfieldDefine an foreign enumerated type.
defcallback
defcenumDefine an foreign enumerated type.
defcfunDefines a Lisp function that calls a foreign function.
defcstructDefine the layout of a foreign structure.
defctypeUtility macro for simple C-like typedefs. A similar effect could be
obtained using define-foreign...
defcunionDefine the layout of a foreign union.
defcvarDefine a foreign global variable.
define-built-in-foreign-typeDefines a built-in foreign-type.
define-foreign-libraryDefines a foreign library NAME that can be posteriorly used with
the USE-FOREIGN-LIBRARY macro.
define-foreign-typeDefine a parameterized type.
define-type-spec-parserDefine a type parser on SYMBOL and lists whose CAR is SYMBOL.
foreign-funcallWrapper around %FOREIGN-FUNCALL(-POINTER) that translates its arguments.
foreign-funcall-varargsWrapper around %FOREIGN-FUNCALL(-POINTER) that translates its arguments
and does type promotion f...
incf-pointer
use-foreign-library
with-foreign-objectBind VAR to a pointer to COUNT objects of TYPE during BODY.
The buffer has dynamic extent and may...
with-foreign-objects
with-foreign-pointer-as-stringLike WITH-FOREIGN-POINTER except VAR as a Lisp string is used as
the return value of an implicit ...
with-foreign-slotsCreate local symbol macros for each var in VARS to reference
foreign slots in PTR of TYPE. Simil...
with-foreign-stringBind VAR to a foreign string containing LISP-STRING in BODY.