The cffi package permits calling C functions in shared libraries from
within Tcl scripts via either the libffi or dyncall open source libraries.
Documentation is at
https://cffi.magicsplat.com. Some additional
tutorial material is available at
https://www.magicsplat.com/blog/tags/cffi/. The
https://github.com/apnadkarni/tcl-cffi/tree/main/examples directory
contains some sample bindings.
Source distributions and binary packages Windows can be downloaded from
https://sourceforge.net/projects/magicsplat/files/cffi.
The source repository is at
https://github.com/apnadkarni/tcl-cffi.
## Changes in 1.0b5
- Added a *Cookbook* section to documentation to help in mapping C
declarations to CFFI.
- Added the `retval` annotation to return a output parameter as the
command result.
- Added `getnativefields` method to retrieve multiple field values from
a native struct.
- Added `new` method for struct instances to allocate and initialize a
native struct in memory.
- Added implicit and explicit casting for pointers.
- The `enum value` and `enum name` commands now accept defaults.
- **Incompatibility** The `get` and `set` methods for struct instances
renamed to `getnative` and `setnative`.
- **Incompatibility** The `callback` and `callback_free` commands are
now part of a `callback` command ensemble.
- **Incompatibility** The last element of a bitmask enumeration list
returns original integer value.
- Miscellaneous bug fixes.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)