write_interfacefile(filename,
modulename,
code,
init_code,
additional_definitions,
additional_declarations,
system_headers,
local_headers,
wrap_headers,
arrays)
| source code
|
Generate a SWIG interface file. Intended for internal library use.
The input arguments are as follows:
-
modulename (Name of the module)
-
code (Code to be wrapped)
-
init_code (Code to put in the init section of the interface file)
-
additional_definitions (Definitions to be placed in initial block
with C code as well as in the main section of the SWIG interface
file)
-
additional_declarations (Declarations to be placed in the main
section of the SWIG interface file)
-
system_headers (A list of system headers with declarations needed by
the wrapped code)
-
local_headers (A list of local headers with declarations needed by
the wrapped code)
-
wrap_headers (A list of local headers that will be included in the
code and wrapped by SWIG)
-
arrays (A nested list, the inner lists describing the different
arrays)
The result of this function is that a SWIG interface with the name
modulename.i is written to the current directory.
|