(bind-function jna-fn return-type)
Binds a jna Function object to a clojure function.
Binds a jna Function object to a clojure function.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close