diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-07-13 20:21:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-07-13 20:21:28 -0700 |
commit | 64dee71da528a42627ac46eb8a8420c807aff1bc (patch) | |
tree | dc7a3fcd4011e9e052401deeda5685f19c172653 /tests/015 | |
parent | d8d2a95c287a315f7d38858b448b1f3f422ceb6c (diff) | |
download | txr-64dee71da528a42627ac46eb8a8420c807aff1bc.tar.gz txr-64dee71da528a42627ac46eb8a8420c807aff1bc.tar.bz2 txr-64dee71da528a42627ac46eb8a8420c807aff1bc.zip |
cptr: new cptr-get and cptr-out functions.
These functions are quite helpful in dealing with semi-opaque
types, like the xmlNode type of libxml2. Such types must be
treated as an opaque handle when passed to and returned from
the API, and not subject to any encoding or decoding, which
means that the appropriate representation for them is via the
cptr family of types. However, semi-opaque types also have
client-visible members that must be accessed directly. These
new functions provide for that access in a convenient way.
* ffi.c (ffi_type_lookup_checked): New static function.
(cptr_getobj, cptr_out): New static functions.
(ffi_init): Register cptr-get and cptr-out.
* txr.1: Documented.
Diffstat (limited to 'tests/015')
0 files changed, 0 insertions, 0 deletions