Liking cljdoc? Tell your friends :D

clj-native.dynamic


bind-functionclj

(bind-function jna-fn return-type)

Binds a jna Function object to a clojure function.

Binds a jna Function object to a clojure function.
sourceraw docstring

defcfncljmacro

(defcfn fn-sym return-type)
(defcfn fn-sym return-type clj-name)

Defines a Clojure function with a variable number of arguments in the current namespace that will delegate to a C function. If no clj-name is supplied the clojure function will have the same name as the C function. Syntax for fn-sym is library/function example: c/printf or m/sin. If no library part is supplied then the function lookup will happen in the current process.

Defines a Clojure function with a variable number of arguments
in the current namespace that will delegate to a C function.
If no clj-name is supplied the clojure function will have the
same name as the C function.
Syntax for fn-sym is library/function example: c/printf or m/sin.
If no library part is supplied then the function lookup
will happen in the current process.
sourceraw docstring

defcvarcljmacro

(defcvar variable-sym)
(defcvar variable-sym clj-name)

Defines a Clojure Var in the current namespace that contains a JNA Pointer object that holds the address of a global C variable. Syntax for variable-sym is library/variable example: clib/globalInt If no library part is supplied then the variable lookup will happen in the current process.

Defines a Clojure Var in the current namespace
that contains a JNA Pointer object that holds the
address of a global C variable.
Syntax for variable-sym is library/variable example: clib/globalInt
If no library part is supplied then the variable lookup
will happen in the current process.
sourceraw docstring

get-functionclj

(get-function lib-name fn-name)

Obtain a jna Function object representing a native function that follows the standard "C" calling convention.

Obtain a jna Function object representing a native
function that follows the standard "C" calling convention.
sourceraw docstring

get-globalclj

(get-global lib-name variable-name)

Gets a pointer to a global variable in the specified library. Throws UnsatisfiedLinkError if the library or symbol could not be found.

Gets a pointer to a global variable in the specified library.
Throws UnsatisfiedLinkError if the library or symbol could not be found.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close