The original C signature is hard to read: it describes a function pointer xDlSym that takes a single const char * argument and returns another function pointer of type void (*)(void). But in the bindgen-generated output, the returned function pointer has the inappropriate type void (*)(const char *) instead.
This affects the public API of libsqlite3-sys here; the reproducer is minimized from that situation.
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
The original C signature is hard to read: it describes a function pointer
xDlSym
that takes a singleconst char *
argument and returns another function pointer of typevoid (*)(void)
. But in the bindgen-generated output, the returned function pointer has the inappropriate typevoid (*)(const char *)
instead.This affects the public API of libsqlite3-sys here; the reproducer is minimized from that situation.