Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

Remove callback guard #35

Merged
merged 4 commits into from
Jun 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ library = "WebKit2WebExtension"
version = "4.0"
work_mode = "normal"
generate_safety_asserts = true
single_version_file = true
target_path = "."

generate = [
Expand Down
3 changes: 1 addition & 2 deletions check_init_asserts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ while (/^(\N*)\V*fn\s+(\w+)\s*(<[^(]+>)?\s*(\([^{;]+)\{\N*\n^(\N*)$/gms) {
$first_line =~ /^\s*(
assert_initialized_main_thread |
assert_not_initialized |
skip_assert_initialized |
callback_guard
skip_assert_initialized
)!\(\)/x) {
print "$ARGV: $name$signature\n";
$e = 1
Expand Down
2 changes: 1 addition & 1 deletion gir
Submodule gir updated 61 files
+140 −225 Cargo.lock
+13 −8 Cargo.toml
+20 −1 README.md
+36 −19 src/analysis/bounds.rs
+1 −1 src/analysis/child_properties.rs
+1 −0 src/analysis/conversion_type.rs
+4 −4 src/analysis/ffi_type.rs
+26 −24 src/analysis/function_parameters.rs
+156 −59 src/analysis/functions.rs
+34 −5 src/analysis/imports.rs
+3 −4 src/analysis/mod.rs
+6 −1 src/analysis/object.rs
+35 −11 src/analysis/out_parameters.rs
+74 −0 src/analysis/override_string_type.rs
+3 −1 src/analysis/properties.rs
+3 −2 src/analysis/ref_mode.rs
+10 −6 src/analysis/return_value.rs
+9 −1 src/analysis/rust_type.rs
+2 −1 src/analysis/trampolines.rs
+109 −0 src/case.rs
+2 −2 src/codegen/alias.rs
+1 −1 src/codegen/child_properties.rs
+1 −1 src/codegen/constants.rs
+1 −1 src/codegen/doc/mod.rs
+7 −6 src/codegen/enums.rs
+7 −6 src/codegen/flags.rs
+223 −7 src/codegen/function.rs
+3 −5 src/codegen/function_body_chunk.rs
+1 −1 src/codegen/functions.rs
+45 −22 src/codegen/general.rs
+11 −13 src/codegen/mod.rs
+19 −6 src/codegen/object.rs
+1 −1 src/codegen/properties.rs
+2 −2 src/codegen/record.rs
+2 −2 src/codegen/signal.rs
+2 −1 src/codegen/sys/ffi_type.rs
+2 −2 src/codegen/sys/functions.rs
+13 −13 src/codegen/sys/lib_.rs
+3 −1 src/codegen/sys/mod.rs
+2 −5 src/codegen/sys/statics.rs
+19 −10 src/codegen/sys/tests.rs
+1 −2 src/codegen/trampoline.rs
+1 −0 src/codegen/trampoline_from_glib.rs
+132 −78 src/config/config.rs
+39 −0 src/config/derives.rs
+13 −36 src/config/error.rs
+3 −5 src/config/external_libraries.rs
+51 −14 src/config/functions.rs
+16 −10 src/config/gobjects.rs
+3 −0 src/config/mod.rs
+1 −2 src/config/parsable.rs
+20 −0 src/config/string_type.rs
+57 −0 src/lib.rs
+92 −15 src/library.rs
+1 −1 src/library_postprocessing.rs
+52 −65 src/main.rs
+0 −1 src/nameutil.rs
+65 −50 src/parser.rs
+4 −4 src/version.rs
+81 −43 src/xmlparser.rs
+5 −0 tests/sys/gir-secret.toml
2 changes: 1 addition & 1 deletion gir-files
2 changes: 2 additions & 0 deletions gir-webkit2gtk-webextensions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ work_mode = "sys"
min_cfg_version="2.4"
library = "WebKit2WebExtension"
version = "4.0"
single_version_file = "."

external_libraries = [
"Gio",
"GLib",
Expand Down
4 changes: 2 additions & 2 deletions src/auto/console_message.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use ffi;
Expand Down
4 changes: 2 additions & 2 deletions src/auto/context_menu.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use ContextMenuItem;
Expand Down
4 changes: 2 additions & 2 deletions src/auto/context_menu_item.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use ContextMenu;
Expand Down
11 changes: 2 additions & 9 deletions src/auto/dom_attr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMElement;
Expand Down Expand Up @@ -147,49 +147,42 @@ impl<O: IsA<DOMAttr> + IsA<glib::object::Object>> DOMAttrExt for O {

unsafe extern "C" fn notify_local_name_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMAttr> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_name_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMAttr> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_namespace_uri_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMAttr> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_owner_element_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMAttr> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_prefix_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMAttr> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_specified_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMAttr> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_value_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMAttr> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
}
5 changes: 2 additions & 3 deletions src/auto/dom_blob.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMObject;
Expand Down Expand Up @@ -49,7 +49,6 @@ impl<O: IsA<DOMBlob> + IsA<glib::object::Object>> DOMBlobExt for O {

unsafe extern "C" fn notify_size_trampoline<P>(this: *mut ffi::WebKitDOMBlob, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMBlob> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMBlob::from_glib_borrow(this).downcast_unchecked())
}
4 changes: 2 additions & 2 deletions src/auto/dom_cdata_section.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMCharacterData;
Expand Down
6 changes: 2 additions & 4 deletions src/auto/dom_character_data.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMEventTarget;
Expand Down Expand Up @@ -131,14 +131,12 @@ impl<O: IsA<DOMCharacterData> + IsA<glib::object::Object>> DOMCharacterDataExt f

unsafe extern "C" fn notify_data_trampoline<P>(this: *mut ffi::WebKitDOMCharacterData, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCharacterData> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCharacterData::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMCharacterData, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCharacterData> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCharacterData::from_glib_borrow(this).downcast_unchecked())
}
10 changes: 2 additions & 8 deletions src/auto/dom_client_rect.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMObject;
Expand Down Expand Up @@ -213,42 +213,36 @@ impl<O: IsA<DOMClientRect> + IsA<glib::object::Object>> DOMClientRectExt for O {

unsafe extern "C" fn notify_bottom_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRect> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_height_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRect> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_left_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRect> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_right_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRect> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_top_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRect> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_width_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRect> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
}
7 changes: 3 additions & 4 deletions src/auto/dom_client_rect_list.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

#[cfg(any(feature = "v2_18", feature = "dox"))]
Expand Down Expand Up @@ -53,7 +53,7 @@ impl<O: IsA<DOMClientRectList> + IsA<glib::object::Object>> DOMClientRectListExt
#[cfg(any(feature = "v2_18", feature = "dox"))]
fn item(&self, index: libc::c_ulong) -> Option<DOMClientRect> {
unsafe {
from_glib_none(ffi::webkit_dom_client_rect_list_item(self.to_glib_none().0, index))
from_glib_full(ffi::webkit_dom_client_rect_list_item(self.to_glib_none().0, index))
}
}

Expand All @@ -76,7 +76,6 @@ impl<O: IsA<DOMClientRectList> + IsA<glib::object::Object>> DOMClientRectListExt

unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMClientRectList, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRectList> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRectList::from_glib_borrow(this).downcast_unchecked())
}
4 changes: 2 additions & 2 deletions src/auto/dom_comment.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMCharacterData;
Expand Down
8 changes: 2 additions & 6 deletions src/auto/dom_css_rule.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMCSSStyleSheet;
Expand Down Expand Up @@ -128,28 +128,24 @@ impl<O: IsA<DOMCSSRule> + IsA<glib::object::Object>> DOMCSSRuleExt for O {

unsafe extern "C" fn notify_css_text_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSRule> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_parent_rule_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSRule> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_parent_style_sheet_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSRule> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_type_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSRule> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
}
5 changes: 2 additions & 3 deletions src/auto/dom_css_rule_list.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMCSSRule;
Expand Down Expand Up @@ -59,7 +59,6 @@ impl<O: IsA<DOMCSSRuleList> + IsA<glib::object::Object>> DOMCSSRuleListExt for O

unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMCSSRuleList, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSRuleList> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSRuleList::from_glib_borrow(this).downcast_unchecked())
}
7 changes: 2 additions & 5 deletions src/auto/dom_css_style_declaration.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMCSSRule;
Expand Down Expand Up @@ -158,21 +158,18 @@ impl<O: IsA<DOMCSSStyleDeclaration> + IsA<glib::object::Object>> DOMCSSStyleDecl

unsafe extern "C" fn notify_css_text_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleDeclaration, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSStyleDeclaration> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSStyleDeclaration::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleDeclaration, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSStyleDeclaration> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSStyleDeclaration::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_parent_rule_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleDeclaration, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSStyleDeclaration> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSStyleDeclaration::from_glib_borrow(this).downcast_unchecked())
}
7 changes: 2 additions & 5 deletions src/auto/dom_css_style_sheet.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMCSSRule;
Expand Down Expand Up @@ -130,21 +130,18 @@ impl<O: IsA<DOMCSSStyleSheet> + IsA<glib::object::Object>> DOMCSSStyleSheetExt f

unsafe extern "C" fn notify_css_rules_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleSheet, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSStyleSheet> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSStyleSheet::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_owner_rule_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleSheet, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSStyleSheet> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSStyleSheet::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_rules_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleSheet, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSStyleSheet> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSStyleSheet::from_glib_borrow(this).downcast_unchecked())
}
6 changes: 2 additions & 4 deletions src/auto/dom_css_value.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use DOMObject;
Expand Down Expand Up @@ -79,14 +79,12 @@ impl<O: IsA<DOMCSSValue> + IsA<glib::object::Object>> DOMCSSValueExt for O {

unsafe extern "C" fn notify_css_text_trampoline<P>(this: *mut ffi::WebKitDOMCSSValue, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSValue> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSValue::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_css_value_type_trampoline<P>(this: *mut ffi::WebKitDOMCSSValue, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSValue> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSValue::from_glib_borrow(this).downcast_unchecked())
}
Loading