11 lines
577 B
Sed
Executable File
11 lines
577 B
Sed
Executable File
# This file provides ad-hoc fixups to the WINGsP provided by bindgen:
|
|
# - Import Xlib symbols so that everything compiles.
|
|
# - Import FFI symbols from Rust bindings and rewrites.
|
|
# - The opaque type names _XftDraw and _XftFont are replaced with void*.
|
|
# - Pango bindings aren't yet pulled into our Rust code, so PangoLayout is also demoted to void*.
|
|
|
|
1s/^/use wrlib_rs::ffi::*;\nuse wutil_rs::range::ffi::*;\nuse x11::xlib::*;\nuse crate::ffi::*;\n\npub mod constants;\n\n/
|
|
s/_XftDraw/::std::ffi::c_void/g
|
|
s/_XftFont/::std::ffi::c_void/g
|
|
s/PangoLayout/::std::ffi::c_void/g
|