-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from vhdirk/regenerate
regenerate from latest gir files
- Loading branch information
Showing
32 changed files
with
302 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"javascriptcore-rs-sys": patch | ||
"javascriptcore-rs": patch | ||
--- | ||
|
||
Regenerate with latest gir-files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "gir-files"] | ||
path = gir-files | ||
url = https://github.com/wusyong/gir-files | ||
url = https://github.com/tauri-apps/gir-files | ||
[submodule "gir"] | ||
path = gir | ||
url = https://github.com/gtk-rs/gir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gir/generator.py |
Submodule gir
updated
15 files
+54 −20 | book/src/config_api.md | |
+1 −0 | src/analysis/conversion_type.rs | |
+1 −0 | src/analysis/ffi_type.rs | |
+2 −1 | src/analysis/functions.rs | |
+2 −2 | src/analysis/out_parameters.rs | |
+21 −2 | src/analysis/record.rs | |
+1 −1 | src/analysis/return_value.rs | |
+1 −1 | src/analysis/rust_type.rs | |
+44 −10 | src/codegen/general.rs | |
+7 −2 | src/codegen/record.rs | |
+1 −0 | src/codegen/sys/ffi_type.rs | |
+1 −1 | src/codegen/sys/tests.rs | |
+35 −3 | src/config/gobjects.rs | |
+13 −0 | src/library.rs | |
+17 −0 | src/parser.rs |
Submodule gir-files
updated
34 files
+1 −0 | .gitignore | |
+3,550 −10,890 | Atk-1.0.gir | |
+224 −152 | GIRepository-2.0.gir | |
+14,057 −35,443 | GLib-2.0.gir | |
+115 −47 | GModule-2.0.gir | |
+4,816 −12,215 | GObject-2.0.gir | |
+5,826 −17,513 | Gdk-3.0.gir | |
+15,140 −4,039 | Gdk-4.0.gir | |
+2,534 −3,489 | GdkPixbuf-2.0.gir | |
+115 −100 | GdkPixdata-2.0.gir | |
+136 −79 | GdkWayland-4.0.gir | |
+1,208 −348 | GdkX11-4.0.gir | |
+15,701 −12,909 | Gio-2.0.gir | |
+20 −36 | Graphene-1.0.gir | |
+3,721 −1,127 | Gsk-4.0.gir | |
+30,016 −90,790 | Gtk-3.0.gir | |
+21,139 −15,828 | Gtk-4.0.gir | |
+2,623 −2,144 | HarfBuzz-0.0.gir | |
+355 −0 | JavaScriptCore-4.0-patch.gir | |
+1,152 −603 | JavaScriptCore-4.0.gir | |
+84 −0 | JavaScriptCore-4.0.xsl | |
+2,798 −2,169 | Pango-1.0.gir | |
+527 −154 | PangoCairo-1.0.gir | |
+336 −100 | PangoFT2-1.0.gir | |
+593 −162 | PangoFc-1.0.gir | |
+760 −226 | PangoOT-1.0.gir | |
+478 −136 | PangoXft-1.0.gir | |
+15,958 −4,767 | Soup-2.4.gir | |
+5,353 −3,358 | WebKit2-4.0.gir | |
+6,927 −4,653 | WebKit2WebExtension-4.0.gir | |
+12 −11 | dl.sh | |
+20 −0 | fix.sh | |
+2 −9 | freetype2-2.0.gir | |
+2 −7 | win32-1.0.gir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Generated by gir (https://github.com/gtk-rs/gir @ 05fe12c0b7e7) | ||
from gir-files (https://github.com/wusyong/gir-files @ d11622cc2fc4) | ||
Generated by gir (https://github.com/gtk-rs/gir @ a97e6087cf6b) | ||
from gir-files (https://github.com/vhdirk/gir-files @ 5c5c482b7f4a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use ffi::*; | ||
use glib::translate::*; | ||
use std::ptr; | ||
|
||
pub struct GlobalContextRef { | ||
raw: JSGlobalContextRef, | ||
} | ||
|
||
impl FromGlibPtrNone<JSGlobalContextRef> for GlobalContextRef { | ||
unsafe fn from_glib_none(ptr: JSGlobalContextRef) -> Self { | ||
GlobalContextRef { raw: ptr } | ||
} | ||
} | ||
|
||
impl FromGlibPtrFull<JSGlobalContextRef> for GlobalContextRef { | ||
unsafe fn from_glib_full(ptr: JSGlobalContextRef) -> Self { | ||
GlobalContextRef { raw: ptr } | ||
} | ||
} | ||
|
||
impl<'a> ToGlibPtr<'a, JSGlobalContextRef> for GlobalContextRef { | ||
type Storage = (); | ||
|
||
#[inline] | ||
fn to_glib_none(&self) -> Stash<'a, JSGlobalContextRef, GlobalContextRef> { | ||
Stash(self.raw, ()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
// // Copyright 2013-2017, The Gtk-rs Project Developers. | ||
// // See the COPYRIGHT file at the top-level directory of this distribution. | ||
// // Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT> | ||
#![cfg_attr(feature = "dox", feature(doc_cfg))] | ||
|
||
pub use auto::{traits::*, *}; | ||
use ffi::*; | ||
use glib::translate::{FromGlibPtrFull, FromGlibPtrNone}; | ||
use std::ptr; | ||
|
||
mod auto; | ||
pub use auto::{traits::*, *}; | ||
mod global_context_ref; | ||
mod string_ref; | ||
mod value_ref; | ||
|
||
pub use global_context_ref::*; | ||
pub use string_ref::*; | ||
pub use value_ref::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// This file was generated by gir (https://github.com/gtk-rs/gir) | ||
// from gir-files (https://github.com/vhdirk/gir-files) | ||
// DO NOT EDIT | ||
|
||
use glib::translate::*; | ||
|
||
glib::wrapper! { | ||
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] | ||
pub struct StringRef(Shared<ffi::JSStringRef>); | ||
|
||
match fn { | ||
ref => |ptr| ffi::JSStringRetain(*ptr), | ||
unref => |ptr| ffi::JSStringRelease(*ptr), | ||
} | ||
} | ||
|
||
impl StringRef { | ||
#[doc(alias = "JSStringGetMaximumUTF8CStringSize")] | ||
pub fn maximum_utf8_cstring_size(&self) -> usize { | ||
unsafe { ffi::JSStringGetMaximumUTF8CStringSize(*self.to_glib_none().0) } | ||
} | ||
|
||
// #[doc(alias = "JSStringGetUTF8CString")] | ||
// pub fn getUTF8CString(&self, buffer: glib::GString, buffer_size: usize) -> usize { | ||
// unsafe { ffi::JSStringGetUTF8CString(*self.to_glib_none().0, buffer.to_glib_f) } | ||
// } | ||
} |
Oops, something went wrong.