Update to latest release of bindgen

Note that all of the enum definitions changed (again?), and now they are
flattened into the 'bindings' namespace. This breaks the API in a way that
is relatively easy to fix, albeit annoying. Attempts to change the enum
generation using default_enum_style() resulted in endless compiler errors.

cargo test passes
This commit is contained in:
Nathan Fiedler
2018-10-06 15:05:16 -07:00
parent 336606f121
commit 8a4fced836
10 changed files with 86 additions and 93 deletions

View File

@ -49,7 +49,7 @@ use libc::ssize_t;
pub fn magick_wand_genesis() {
unsafe {
match bindings::IsMagickWandInstantiated() {
bindings::MagickBooleanType::MagickTrue => (),
bindings::MagickBooleanType_MagickTrue => (),
_ => bindings::MagickWandGenesis()
}
}
@ -60,7 +60,7 @@ pub fn magick_wand_genesis() {
pub fn magick_wand_terminus() {
unsafe {
match bindings::IsMagickWandInstantiated() {
bindings::MagickBooleanType::MagickTrue => bindings::MagickWandTerminus(),
bindings::MagickBooleanType_MagickTrue => bindings::MagickWandTerminus(),
_ => ()
}
}